Given a table : 'Student' having attributes [Admission_number, Roll_no, Name, Marks]
The primary key Admission_number of this table is selected from the set of :
Given a table : 'Student' having attributes [Admission_number, Roll_no, Name, Marks]
The primary key Admission_number of this table is selected from the set of :
Solution
A candidate key is any attribute (or set of attributes) that can uniquely identify every row of a table. The primary key is the one candidate key the designer chooses. Here Admission_number and Roll_no could both be candidate keys, and Admission_number is the one chosen as primary.
Option 4: alternate keys are the candidate keys left over after the primary key is chosen (here, Roll_no). The primary key is therefore not selected from them.
Option 1: a foreign key refers to the primary key of another table and does not identify rows in its own table.
Option 3: "unique key" is a constraint that prevents duplicate values. It is not the standard term for the pool from which a primary key is chosen.
Related questions:
2025: 27 May Shift 2
2026: 24 May Shift 1
2026: 31 May Shift 1
2026: 29 May Shift 2
2025: 16 May Shift 1