Test Index

CBSE Class 12 Computer Science 2026 Paper Set 4 Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 21 of 37
Marks: +1, -0
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.
Solution:  
Explanation:
Assertion: PRIMARY KEY = UNIQUE + NOT NULL. Every value of the primary key column(s) must be different and must be present. A is true.
Reason: the primary key is chosen from the candidate keys; every candidate key is eligible to become the primary key. R is false.
Answer:
Option C (Assertion (A) is true, but Reason (R) is false.)
© examsnet.com
Advertisements
Go to Question: