In a table regarding the entries of students, which among these can be the most appropriate for PRIMARY KEY?
In a table regarding the entries of students, which among these can be the most appropriate for PRIMARY KEY?
Solution
✅ Correct Option: 1
A primary key must identify each row uniquely, so it cannot repeat or be NULL. RollNumber is assigned to one student only, so no two records share it.
Options 2, 3 and 4: Sname, DateofBirth and Age can all repeat, since many students can share a name, a birth date or an age, so they cannot identify a row uniquely.
A table can have only one primary key, but it may be made of more than one column (a composite key).
Related questions:
2025: 30 May Shift 2
2025: 20 May Shift 1
2026: 13 May Shift 2
2026: 13 May Shift 2
2025: 16 May Shift 1