📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In an Invoice-LineItem design, LineItem has a composite primary key of InvoiceID and LineNo. What does this show?

A. LineItem is a strong entity
B. LineNo is a foreign key to Customer
C. LineItem is a weak entity whose identity depends on Invoice ✅
D. Invoice is a weak entity

Correct Answer: C. LineItem is a weak entity whose identity depends on Invoice

Explanation

The composite key includes the owner's key, which is the hallmark of a weak entity in an identifying relationship.