📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which situation violates referential integrity?

A. An Order row refers to a CustomerID that does not exist ✅
B. A primary key value is repeated
C. A column stores text instead of a number
D. A table has no index

Correct Answer: A. An Order row refers to a CustomerID that does not exist

Explanation

Referential integrity requires every foreign key value to match an existing primary key value or be NULL.