📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is a composite foreign key?

A. A foreign key with a null value
B. A foreign key that references two tables
C. A foreign key made of two or more columns that together reference a composite primary key ✅
D. A foreign key that is also a surrogate key

Correct Answer: C. A foreign key made of two or more columns that together reference a composite primary key

Explanation

When the parent key has several columns, the foreign key must have the same number of columns in the same order to match it.