📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the effect of making a foreign key UNIQUE in a one-to-many design?

A. It makes the relationship many-to-many
B. It makes the foreign key a primary key
C. It wrongly restricts the relationship to one-to-one, because each parent value can appear only once ✅
D. It has no effect

Correct Answer: C. It wrongly restricts the relationship to one-to-one, because each parent value can appear only once

Explanation

A unique foreign key allows each parent to be referenced only once, changing a 1:N design into 1:1.