This question is causing confusion. Because we have have learnt that –
- Candidate Key = The minimal set of attributes which can uniquely identify a tuple is known as candidate key.
- Primary Key = There can be more than one candidate key in relation out of which one can be chosen as the primary key.
- Primary key can not contain “null” values.
But note that, candidate key can contain null values. It is just that in that case, that candidate key can not be chosen as primary key. We need to chose some other candidate key as primary key, which can not contain “null” values.