📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How is a ternary relationship mapped into tables?

A. By adding three foreign keys to one table
B. By merging the three entities into one table
C. By creating a junction table with three foreign keys, one to each participating entity ✅
D. By using three separate junction tables

Correct Answer: C. By creating a junction table with three foreign keys, one to each participating entity

Explanation

A ternary link needs one junction table holding a foreign key to each of the three entities, with the three together usually forming the key.