📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which of the following is an example of a composite key?

A. ISBN alone in Books
B. (StudentID, CourseID) in Enrollment ✅
C. CNIC alone in Citizens
D. Email alone in Users

Correct Answer: B. (StudentID, CourseID) in Enrollment

Explanation

The pair identifies one enrollment, whereas each single value can occur many times in the table.