← Quiz: Keys and Constraints: all 10 questions
Quiz: Keys and Constraints · Question 9 of 10
In enrollments(rollno, coursecode) the primary key is (rollno, coursecode). What kind of key is it?
In enrollments(roll_no, course_code) the primary key is (roll_no, course_code). What kind of key is it?
- A.Composite key
- B.Alternate key
- C.Foreign key only
- D.Super key that is not minimal
Answer & explanation
Correct answer: Composite key
A key made of two or more columns is a composite key.
Can you get the rest right without peeking?
Take the timed Quiz: Keys and Constraints quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →