📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

In a junction table, what does a UNIQUE constraint on StudentID alone do?

A. It prevents duplicate enrolments correctly
B. It makes CourseID a primary key
C. It wrongly limits each student to only one course, breaking the many-to-many design ✅
D. It speeds up the table

Correct Answer: C. It wrongly limits each student to only one course, breaking the many-to-many design

Explanation

A unique StudentID would allow only one row per student, so the student could enrol in only one course.