📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a many-to-many relationship, how is it normally implemented in a relational database?

A. By creating a junction table with two foreign keys ✅
B. By putting a foreign key in each table pointing to the other
C. By using a composite primary key only
D. By merging the two tables into one

Correct Answer: A. By creating a junction table with two foreign keys

Explanation

Relational tables cannot store a list of links directly, so a junction table holds one row per pair, with a foreign key to each side.