📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Where is a foreign key placed in a one-to-many relationship?

A. In a separate table always
B. In the table on the many side, referencing the primary key of the one side ✅
C. In both tables equally
D. In the table on the one side, referencing the many side

Correct Answer: B. In the table on the many side, referencing the primary key of the one side

Explanation

The many side holds the foreign key so many child rows can point to the same parent.