A student relation having five columns: RollNumber, SName, SDoB, GPhone, GName is given below.
RollNumber SName SDoB GName GPhone 101 Akarsh 21.04.95 Himanshu 9918044336 102 Amit 15.10.96 Pradeep 7905200265 103 Anubhav 13.06.95 Sumit 9415019796 104 Amit 12.05.94 Nidhi 8563886953 105 Ajeet 21.04.95 Sumit 9410927785
Based on the above records, which of the following attribute can be used to uniquely identify the tuples in the given relation?
A. RollNumber
B. SName
C. Gphone
D. SDoB
A student relation having five columns: RollNumber, SName, SDoB, GPhone, GName is given below.
| RollNumber | SName | SDoB | GName | GPhone |
|---|---|---|---|---|
| 101 | Akarsh | 21.04.95 | Himanshu | 9918044336 |
| 102 | Amit | 15.10.96 | Pradeep | 7905200265 |
| 103 | Anubhav | 13.06.95 | Sumit | 9415019796 |
| 104 | Amit | 12.05.94 | Nidhi | 8563886953 |
| 105 | Ajeet | 21.04.95 | Sumit | 9410927785 |
Based on the above records, which of the following attribute can be used to uniquely identify the tuples in the given relation?
A. RollNumber
B. SName
C. Gphone
D. SDoB
Solution
RollNumber (A) has a different value in every row, so it is a candidate key and identifies each tuple uniquely.
GPhone (C) also has five different values (9918044336, 7905200265, 9415019796, 8563886953, 9410927785), so it can identify tuples uniquely in the given records as well.
SName (B): "Amit" appears twice (rows 102 and 104), so it is not unique.
SDoB (D): "21.04.95" appears twice (rows 101 and 105), so it is not unique.
Uniqueness here is judged only from the given records. In a real design, a phone number could be shared by guardians of siblings, so RollNumber is the safest key.
Related questions:
2025: 3 June Shift 2
2025: 30 May Shift 2
2026: 23 May Shift 1