📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In which situation is entity integrity violated?

A. A foreign key points to a missing parent
B. A primary key column contains a NULL value ✅
C. A column stores a wrong data type
D. A table has no index

Correct Answer: B. A primary key column contains a NULL value

Explanation

Entity integrity requires the primary key to be unique and never NULL.