Skip to main contentSkip to solution

Which of the following key can take NULL VALUES?

Solution

✅ Correct Option: 3

A foreign key can take NULL values. It refers to the primary key of another table, and a NULL means the row is not linked to any row in that table. It is allowed unless the column is declared NOT NULL.


Option 2: a primary key must be unique and can never be NULL (entity integrity rule).

Options 1 and 4: a candidate key is any column that could serve as the primary key, so it must be unique and non-NULL. An alternate key is a candidate key that was not chosen as the primary key, so it follows the same rule.

Keyboard Shortcuts

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