📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a junction table, can the same foreign-key value appear many times?

A. No, foreign keys must be unique
B. Yes, the same StudentID can appear in many rows, once for each course they take ✅
C. No, only primary keys can repeat
D. Yes, but only once per table

Correct Answer: B. Yes, the same StudentID can appear in many rows, once for each course they take

Explanation

A foreign key in a junction table is not unique by itself; only the combination of both foreign keys must be unique.