📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which of the following tables most needs a composite key?

A. A table of countries with a unique CountryCode
B. A table recording which students enrolled in which courses ✅
C. A table of books with a unique ISBN
D. A table of users with a unique Email

Correct Answer: B. A table recording which students enrolled in which courses

Explanation

Enrollment is a many-to-many link with no single unique column, so a composite of the two IDs is natural.