📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How is a many-to-many relationship between Student and Course usually implemented in relational tables?

A. By adding a foreign key to one table
B. By creating a junction table with two foreign keys ✅
C. By merging the two tables into one
D. By deleting one of the tables

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

Explanation

A many-to-many relationship is implemented with a junction table that holds a foreign key to each of the two tables.