📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which key can contain NULL values?

A. A candidate key chosen as primary
B. No key at all
C. A foreign key, if the relationship is optional ✅
D. A primary key

Correct Answer: C. A foreign key, if the relationship is optional

Explanation

An optional relationship allows a NULL foreign key, meaning no parent is linked, while a primary key never allows NULL.