📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A foreign key column is allowed to be NULL. What does a NULL foreign key mean?

A. The row violates referential integrity
B. The row is not linked to any parent row yet, which is permitted ✅
C. The parent row has been deleted
D. The row must be deleted

Correct Answer: B. The row is not linked to any parent row yet, which is permitted

Explanation

A null foreign key means no parent is assigned, which is allowed when the relationship is optional, and it does not point to a non-existent parent.