Skip to main contentSkip to solution

Identify Candidate Keys from the following table.

RollNoName
123Amit
123Anil

Solution

✅ Correct Option: 2

A candidate key is a minimal set of attributes whose values are unique for every row.

In the table, RollNo has the same value (123) in both rows, so it cannot identify a row. Name has different values (Amit, Anil), so it identifies each row uniquely. Since Name is a single attribute, it is minimal, so it is the candidate key.


Option 1: RollNo repeats (123 twice), so it is not unique.

Option 3: RollNo, Name is unique, but it is only a superkey. It is not minimal because Name alone already works.

Option 4: a candidate key does exist here, namely Name.

Keyboard Shortcuts

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