Chapter 8 – Database Redesign
Page 8-68
❖ MORGAN IMPORTING PROJECT QUESTIONS
Assume that Morgan has created a database with the tables described at the end of Chapter 7
(note that STORE uses the surrogate key StoreID):
Note: this project is the most difficult in this chapter.
EMPLOYEE (EmployeeID, LastName, FirstName, Department, Position, Supervisor,
OfficePhone, OfficeFax, EmailAddress)
STORE (StoreID, StoreName, City, Country, Phone, Fax, EmailAddress, Contact)
PURCHASE_ITEM (PurchaseItemID, StoreID, PurchasingAgentID, PurchaseDate,
Assume that all relationships have been defined as implied by the foreign keys in this table list.
The referential integrity constraints are:
Supervisor in EMPLOYEE must exist in EmployeeID in EMPLOYEE
StoreID in PURCHASE_ITEM must exist in StoreID in STORE
PurchasingAgentID in PURCHASE_ITEM must exist in EmployeeID in EMPLOYEE
ReceivingAgentID in SHIPMENT_RECEIPT must exist in EmployeeID in EMPLOYEE
Assume that EmployeeID of EMPLOYEE, PurchaseItemID of PURCHASE_ITEM, ShipperID
of SHIPPER, ShipmentID of SHIPMENT, and ReceiptNumber of SHIPMENT_RECEIPT are
all surrogate keys with values as follows:
Errata: StoreID should start at 1000.
Store ID Start at 1000 Increment by 50
EmployeeID Start at 101 Increment by 1