📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the effect of making a foreign key column NOT NULL?

A. The parent becomes optional
B. Child rows can exist without a parent
C. The foreign key becomes a primary key
D. Every child row must be linked to a parent row ✅

Correct Answer: D. Every child row must be linked to a parent row

Explanation

A NOT NULL foreign key makes the relationship mandatory, so a child cannot be stored without its parent.