📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

An Order must have at least one OrderItem, and an OrderItem belongs to exactly one Order. What does this mean for the OrderItem side?

A. Partial participation with no foreign key
B. Total participation with maximum cardinality 1, implemented by a NOT NULL OrderID foreign key ✅
C. No participation at all
D. Many-to-many with a junction table

Correct Answer: B. Total participation with maximum cardinality 1, implemented by a NOT NULL OrderID foreign key

Explanation

Every OrderItem must link to one Order, so its foreign key is mandatory and points to a single parent.