Four relationships
- CUSTOMER:ORDER
- ORDER:LINE ITEM
- LINE ITEM:CD
- CD:DISTRIBUTOR
For each pair in the displayed order, select A–E without reversing the construct, write the rule in both directions using minimum/maximum counts, and identify all PK and FK attributes in each entity. For LINE ITEM, show the complete composite key and both foreign-key targets. An equivalent diagram plus clear text is acceptable.
VENDOR:PRODUCT — construct E
One VENDOR has 0..many PRODUCT instances.
One PRODUCT has 1..1 VENDOR.
VENDOR: VendID = PK
PRODUCT: ProdID = PK; VendID = FK to VENDOR.VendID
The example assumes optional vendor participation and mandatory product participation. When naming participation, say whose instances must participate; do not infer it just from an entity's location on the page.
Self-assessment: 60 points
For each of four relationships, award up to 5 points for the correct construct and consistent bidirectional counts, 5 for the first entity’s complete key annotations, and 5 for the second entity’s complete key annotations. Total: 60 points. CPK/FK means an attribute is a component of the composite primary key and also a foreign key; it is not a complete primary key by itself. Compare your work with the model answer; this page does not automatically grade free text or award course credit.