📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which many-to-many relationship needs a junction table with THREE foreign keys?

A. A ternary relationship, such as a Prescription linking Doctor, Patient and Drug ✅
B. A self-referencing Employee relationship
C. A binary Student-Course relationship
D. A one-to-one Person-Passport relationship

Correct Answer: A. A ternary relationship, such as a Prescription linking Doctor, Patient and Drug

Explanation

A ternary relationship involves three entity types, so its junction table needs a foreign key to each of them.