Skip to main contentSkip to solution

Which of the following are Primary Key constraints?

Solution

✅ Correct Option: 3

A primary key identifies each row of a table exactly once. So its values must be unique, so that no two rows share the same key, and not null, so that every row has a key value. Only Option 3 states both conditions.


Options 1, 2 and 4: a primary key need not be numeric. It can be text, such as a roll number like "A101" or an email ID. Option 2 also fails because duplicates are not allowed in a primary key.

A table can have only one primary key, but it can 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