Skip to main contentSkip to solution

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).

Keyboard Shortcuts

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