📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

A composite foreign key (DeptID, SectionID) referencing Department(DeptID, SectionID) must match:

A. Both columns together, as a pair ✅
B. Only SectionID
C. Only DeptID
D. Any one of the two columns

Correct Answer: A. Both columns together, as a pair

Explanation

A composite foreign key matches the whole composite primary key, so both values must exist together in the parent table.