← Quiz: ER to Tables: all 15 questions
Quiz: ER to Tables · Question 10 of 15
What does the primary key (rollno, coursecode) on the enrollment table prevent?
What does the primary key (roll_no, course_code) on the enrollment table prevent?
- A.A student taking more than one course
- B.A course having more than one student
- C.Grades being NULL
- D.The same student being enrolled in the same course twice
Answer & explanation
Correct answer: The same student being enrolled in the same course twice
The pair must be unique, but each value on its own may repeat.
Can you get the rest right without peeking?
Take the timed Quiz: ER to Tables quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →