📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is referential integrity?

A. The rule that all values are unique
B. The rule that a foreign key value must match an existing primary key value in the referenced table ✅
C. The rule that tables have the same name
D. The rule that no column is NULL

Correct Answer: B. The rule that a foreign key value must match an existing primary key value in the referenced table

Explanation

Referential integrity prevents orphan rows by requiring foreign key values to exist in the parent table (or be NULL).