📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is referential integrity in the context of a junction table?

A. The junction table must have no primary key
B. Only one foreign key needs to match
C. The junction table needs no foreign keys
D. Each foreign key in the junction table must match an existing row in its own parent table ✅

Correct Answer: D. Each foreign key in the junction table must match an existing row in its own parent table

Explanation

A junction row links two real entities, so both foreign keys must point to existing parent rows or the link is invalid.