Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

*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 table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago