Question: Create the following database and tables in SQL. CUSTOMER CustomerID FirstName Last Name Phone Street City State Zip CUSTOMER_PAYMENT PaymentID (FK) CustomerID (FK) Payment Date

Create the following database and tables in SQL.

SQL.PNG 

CUSTOMER CustomerID FirstName Last Name Phone Street City State Zip CUSTOMER_PAYMENT PaymentID (FK) CustomerID (FK) Payment Date PAYMENT Payment ID Payment Type ORDERS OrderID CustomerID OrderDate ORDER INVENTORY OrderID (FK) InventoryID (FK) Quantity Figure 4.1 Computer_Store data model. SHIPPING ShippingID ShippingDate OrderID Employee D Street City State Zip PRODUCT ProductID ProductName INVENTORY InventoryID ItemID (FK) QOH Price EMPLOYEE EmployeeID FirstName LastName ITEM ItemID ProductID (FK) CPU RAM Hard Drive Optical Drive Monitor

Step by Step Solution

3.36 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create the database and tables in the diagram you provided we can use the following SQL statements Create the database CREATE DATABASE computerstor... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!