📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

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

A. By placing a foreign key in one table and adding a UNIQUE constraint to it, or by sharing the primary key ✅
B. Always with a junction table
C. By merging all columns into one table only
D. By adding two foreign keys to both tables

Correct Answer: A. By placing a foreign key in one table and adding a UNIQUE constraint to it, or by sharing the primary key

Explanation

A one-to-one link can be mapped with a unique foreign key, or the child can use the parent primary key as its own primary key.