Question:medium

Assertion (A): The PRIMARY KEY constraint in SQL ensures that each value in the column(s) is unique and cannot be NULL.

Reason (R): Candidate keys are not eligible to become a primary key.

Show Hint

A primary key is unique and not NULL, so (A) is true. A candidate key can be chosen as the primary key, so (R) is false.
Updated On: Oct 20, 2026
  • Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation for Assertion (A).
  • Both Assertion (A) and Reason (R) are true and Reason (R) is not the correct explanation for Assertion (A).
  • Assertion (A) is true, but Reason (R) is false.
  • Assertion (A) is false, but Reason (R) is true.
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Start from the key terms:
Primary key: a column that must be unique and NOT NULL.
Candidate key: a column or column set that qualifies to be the primary key.
The primary key is always picked from the candidate keys.

Step 2: Test the Reason first:
If candidate keys could not become a primary key, no table could ever get a primary key.
That cannot be right, because the primary key itself comes from the candidate keys.
So statement (R) is false.

Step 3: Test the Assertion:
In MySQL, a column declared PRIMARY KEY rejects duplicate values and rejects NULL.
This is exactly what statement (A) says, so (A) is true.

Step 4: Pick the option by elimination:
A true and R true: options 1 and 2. Not possible, because R is false.
A false and R true: option 4. Not possible, because A is true and R is false.
Only option 3 is left: A is true and R is false.

Final Answer:
Option 3 is correct: the Assertion is true and the Reason is false.
Was this answer helpful?
0