100% found this document useful (1 vote)
686 views

Customers Orders Orderlineitems Products: Customerid Productid

The document describes several database design exercises: 1) A database diagram is designed for a product orders database with four tables - Customers, Orders, OrderLineItems, and Products - with primary keys and foreign keys identified between the tables. 2) Two additional tables - Shippers and Employees - are added to the design from exercise 1, potentially requiring additional tables and columns. 3) The design from exercise 2 is modified to identify columns that should be indexed, with an explanation of the decision. 4) A database diagram is designed to allow individuals to be assigned membership in one or more groups, with each group having any number of individuals and each individual belonging to any number of groups, potentially requiring

Uploaded by

jdphan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
686 views

Customers Orders Orderlineitems Products: Customerid Productid

The document describes several database design exercises: 1) A database diagram is designed for a product orders database with four tables - Customers, Orders, OrderLineItems, and Products - with primary keys and foreign keys identified between the tables. 2) Two additional tables - Shippers and Employees - are added to the design from exercise 1, potentially requiring additional tables and columns. 3) The design from exercise 2 is modified to identify columns that should be indexed, with an explanation of the decision. 4) A database diagram is designed to allow individuals to be assigned membership in one or more groups, with each group having any number of individuals and each individual belonging to any number of groups, potentially requiring

Uploaded by

jdphan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1) Design a database diagram for a product orders database with four tables.

Indicate the relationships between tables and identify the primary key and foreign keys in each table. Explain your design decisions.

Customers
CustomerID CustomerName CustomerAddress CustomerPhone

Orders
OrderID CustomerID OrderDate ShipAddress ShipDate

OrderLineItems
OrderID OrderSequence ProductID Quantity UnitPrice

Products
ProductID ProductName QtyPerUnit UnitPrice InStock OnOrder

2) Add the two tables below into the design for exercise 1. Create additional tables and columns, if necessary. Explain your design decisions.

Customers
CustomerID CustomerName CustomerAddress CustomerPhone

Orders
OrderID CustomerID OrderDate ShipAddress ShipDate

OrderLineItems
OrderID OrderSequence ProductID Quantity UnitPrice

Products
ProductID ProductName QtyPerUnit UnitPrice InStock OnOrder

Shippers
ShipperID ShipperName ShipperAddress ShipperPhone

Employees
EmployeeID FirstName LastName SSM HireDate

3) Modify your design for exercise 2 to identify the columns that should be indexed, and explain your decision. 4) Design a database diagram that allows individuals to be assigned membership in one or more groups. Each group can have any number of individuals and each individual can belong to any number of groups. Create additional tables and columns, if necessary. Explain your design decisions. Part B: AUTHOR AuthorID ALName AFName Au-Bk (AuthorID ISBN-No) BOOK ISBN-No BookTitle (AuthorID Copies PublisherID) BOOKCOPY CallNum (ISBN-No) Condition Status

PUBLISHER PublisherID PublisherName

LOANDETAILS *(LoanID+ CallNum) DueDate ReturnDate

LOAN LoanID (MemberID) LoanDate

MEMBER MemberID MLName MFName Address Status Membership Date

You might also like