Answered step by step
Verified Expert Solution
Question
1 Approved Answer
*Ignore the first 6. I just need numbers 7 and 8 please.* Write an SQL script that does the following: Step 1. Using the SQL
*Ignore the first 6. I just need numbers 7 and 8 please.*
Write an SQL script that does the following: Step 1. Using the SQL CREATE TABLE command, create the zipcode table as follows: Table: zipcode Step 2. Using the SQL CREATE TABLE command, create the customers table as follows: Table: customers Create the foreign key using a table level constraint. Step 4. Establish OrderID as the primary key of the orders table. Use ALT'ER TABLE for this purpose. Step 5. Establish CustomerID as a foreign key in the orders table referencing the CustomerID column of the customer table. Use AL'T'ER TABLE for this purpose. Step 6. Using the SQL CREATE TABLE command, create the products table as follows: Table: Product Using the SQL CREAT'E Table command, create the orderedproducts table as follows: Table: orderedproducts Create the composite primary key and the foreign keys using table level constraints. Create an index on the OrderDate column of the orders tableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started