📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

How is a one-to-many relationship converted into tables?

A. The one-side table gets a foreign key to the many side
B. Both tables get a junction table
C. The many-side table becomes the parent
D. The one-side table keeps its primary key, and the many-side table gets a foreign key to it ✅

Correct Answer: D. The one-side table keeps its primary key, and the many-side table gets a foreign key to it

Explanation

Mapping a one-to-many link means placing the parent primary key as a foreign key in the child table.