Skip to main contentSkip to solution

A STUDENT relation have attributes: RollNumber, Sname, SDateofBirth, GuardianID. Which among the following attributes is best suited as Primary Key?

Solution

✅ Correct Option: 1

A primary key must identify every row uniquely and never be null. RollNumber is assigned to exactly one student, so no two students share it, which makes it the best choice.


Option 4: a guardian can have more than one child in the school, so GuardianID repeats across rows.

Options 2 and 3: different students can share a name or a date of birth (twins share a date of birth), so neither is unique.

Keyboard Shortcuts

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