Modify the tables in the Reporting_Schema to prepare them for reporting. Create a script to do the
Question:
Modify the tables in the Reporting_Schema to prepare them for reporting. Create a script to do the following. Save your script with the name, "Modify Warehouse". Include a screen snip of your completed script in your solution file.
Alter the three tables to set up a primary key constraint for CustomerID in Customer, SalesOrderID in SalesOrderheader and a composite key of SalesOrderID and SalesOrderDetailID in the SalesOrderDetail table.
Add a foreign key constraint to SalesOrderHeader on CustomerID referencing the CustomerID primary key column in Customers.
Add a foreign key constraint to SalesOrderDetail on SalesorderID referencing SalesOrderID in the SalesOrderHeader table.
the script should look like the following....
Please answer in SQL.
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen