A STUDENT relation have attributes: RollNumber, Sname, SDateofBirth, GuardianID. Which among the following attributes is best suited as Primary Key?
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.
Related questions:
2026: 18 May Shift 2
2026: 26 May Shift 1
2025: 30 May Shift 2
2025: 3 June Shift 2
2026: 13 May Shift 2