📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which action violates entity integrity?

A. Inserting a row with a NULL primary key ✅
B. Deleting a child row
C. Inserting a row with a NULL foreign key
D. Inserting a row with a duplicate foreign key

Correct Answer: A. Inserting a row with a NULL primary key

Explanation

Entity integrity forbids NULL primary keys, so inserting a row without a primary key value violates it.