Skip to main contentSkip to solution

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

✅ Correct Option: 2

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question