Question: Design a database diagram for a product orders database with four tables. Indicate the relationships between tables and identify the primary key and foreign key
Design a database diagram for a product orders database with four tables. Indicate the relationships between tables and identify the primary key and foreign key in each table. Explain your design decisions.
- Customers (CustomerID, CustomerName, CustomerAddress, CustomerEmail, CustomerPhone)
- Orders (OrderID, CustomerID, OrderDate, ShipDate, TotalPrice)
- OrderItem (OrderID, ProductID, Quantity, UnitPrice)
- Products (ProductID, ProductName, Price, InStock, OnOrder)
b) Add the three tables below into the design for part a, you can create additional tables and columns if necessary. Indicate the relationships between tables and identify the primary key and foreign key in each table. Explain your design decisions.
-
- Shipping (ShippingID, OrderID, ShipperName, ShipperPhone, Weight, ShippingDate, ShippingMedium, ShippingStatus)
- Employees (EmployeeID, SSN, FirstName, LastName, HireDate, Title, DepartmentID, HomeAddress, Phone, Email)
- Department (DepartmentID, DepartmentHead, DepartmentAddress)
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Part A Initial Database Design In this initial design Ive created four tables Customers Orders OrderItem and Products Each table serves a specific purpose in managing product orders Below are the deta... View full answer
Get step-by-step solutions from verified subject matter experts
