Skip to main contentSkip to solution

Which of the following key is formed by atleast two attributes?

Solution

✅ Correct Option: 2

A composite key is made by combining two or more attributes, so that together they identify each row uniquely, even when no single attribute can do it alone. For example, (StudentID, CourseID) in an enrolment table.


Primary Key: it can be a single attribute (like RollNo), and it is composite only when no single attribute is enough.

Alternate Key: it is a candidate key not chosen as the primary key, and it can be a single attribute.

Foreign Key: it is an attribute (or set of attributes) that refers to a key in another table, and it is usually a single column.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question