📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which statement about referential integrity and data types is correct?

A. The foreign key and referenced primary key must have compatible data types ✅
B. Only the foreign key type matters
C. Only the primary key type matters
D. They can have completely different types

Correct Answer: A. The foreign key and referenced primary key must have compatible data types

Explanation

Matching values can only be compared reliably when the types are compatible.