🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Composite key
  2. B.Alternate key
  3. C.Foreign key only
  4. 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 →