Difficulty: Easy
Correct Answer: NOT NULL.
Explanation:
Introduction / Context:
The primary key is the cornerstone of relational design. It uniquely identifies each row and serves as the target for foreign keys. If a primary key could be NULL, it would fail to identify the row and break referential integrity assumptions.
Given Data / Assumptions:
Concept / Approach:
A PRIMARY KEY constraint implicitly enforces NOT NULL and UNIQUE. If you define a composite primary key, every component is NOT NULL. This guarantees that each row has a fully populated identifier, enabling reliable joins and references.
Step-by-Step Solution:
Verification / Alternative check:
Attempting to insert a row with a NULL primary-key column should fail with a constraint violation, confirming enforcement.
Why Other Options Are Wrong:
Common Pitfalls:
Selecting mutable attributes as PKs can cause cascading updates. Prefer stable natural keys or surrogates.
Final Answer:
NOT NULL.
Discussion & Comments