Which of the following key can take NULL VALUES?
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.
Related questions:
2025: 16 May Shift 1
2026: 29 May Shift 2
2025: 27 May Shift 2
2025: 30 May Shift 2