Both attributes 'Roll_Number' and 'Phone_number' in a 'STUDENT' table, uniquely identify a student, but neither is chosen as the primary key. They are called as:-
Both attributes 'Roll_Number' and 'Phone_number' in a 'STUDENT' table, uniquely identify a student, but neither is chosen as the primary key. They are called as:-
Solution
Each of 'Roll_Number' and 'Phone_number' can uniquely identify a student on its own, so each is a minimal set of attributes that identifies a row. Such attributes are candidate keys. One candidate key is chosen as the primary key, and the rest stay as alternate keys.
Super key: any attribute set that uniquely identifies a row, including supersets like (Roll_Number, Name). A candidate key is a minimal super key, which is the more specific term here.
Foreign key: an attribute that refers to the primary key of another table, which is not the case here.
Composite key: a key made of two or more attributes combined. Here each attribute works alone.
Related questions:
2025: 21 May Shift 1
2025: 27 May Shift 2
2026: 23 May Shift 1
2025: 16 May Shift 1
2026: 26 May Shift 1