Uploaded by estestyler134

ERD Quiz Review Key (1)

advertisement
AC 389
ER Quiz Review
Part 1
Tide Cycles leases bicycles from bike owners and then eventually rents the bikes to Alabama
students. Below is a description of the acquisition process for Tide Cycles.
Tide Cycles employees acquire bikes by leasing them from bike owners (e.g., students who do
not need a bike, alumni, etc.). Each lease lasts for one year and requires a deposit and monthly
payments. Each lease relates to only one bike. All bikes have a unique serial number which
becomes the bike’s item number in the inventory records. Bikes and their owners are entered into
the database when the first lease is signed. At the termination of the lease, a bike owner may lease
the same bike to Tide Cycles again. When multiple lease payments are due to the same bike
owner during the same month (Tide Cycles may lease several bikes from one bike owner), the
cashier disburses only one check.
Required: Draw an entity-relationship diagram for the bicycle acquisition cycle. Only
include maximum cardinalities in your diagram. Do NOT include entities that are not
directly related to the inventory acquisition process.
Key: the corresponding color highlight explains the relationship highlighted below.
One Bike can link to many leases
One Lease links to 1 bike
One Lease links to many CDs
CD links to many leases
Bike
Lease
Employee
Cash
Cash
Disbursement
Lessor
AC 389
ER Quiz Review
Part 2
Purchase
Employee
Receive
Vendor
Inventory
….
Attributes:
Item#
Receive#
Employee_Name
Purchase#
Vendor_Name
Receive_Date
Employee#
Purchase_Date
Description
Vendor#
Receive_Qty
Purchase_Qty
Required:
The blank matrix below contains column headings for table name, primary key and other attributes (including
foreign keys). Fill in the matrix to show the relational database you would design given the E-R diagram above.
Each row in the matrix should correspond to one table. Every attribute above should be included in the matrix
at least once. You may not have to use every row or column in the matrix.
Other
Attribute
Other
Attribute
Other
Attribute
Other
Attribute
Table
Primary Key
Inventory
Item#
Description
Purchase
Purchase#
Date
Employee#
Vendor#
Receive#
Receive
Receive#
Date
Employee#
Vendor#
Or Purchase#
Employee
Employee#
Employee_Name
Vendor
Vendor#
Vendor_Name
Inventory-Purchase
Purchase#
Item#
Purchase_Qty
Inventory-Receive
Receiving#
Item#
Receive_Qty
Download