Test Index

Structured Query Language (SQL) Get it on Google PlayDownload on the App Store CBSE Board Videos

© examsnet.com
Question : 7 of 58
Marks: +1, -0
State True or False :
In SQL, the UNIQUE constraint on an attribute ensures that values in it are not left empty.
[CBSE 2026 Compartment]
Solution:  
Concept:
UNIQUE ensures that no two rows have the same value in the column. It does not forbid empty values: a UNIQUE column can hold NULL.
Explanation:
The constraint that stops a value from being left empty is NOT NULL. (A PRIMARY KEY is both UNIQUE and NOT NULL.) So the statement is false.
Answer:
Option B (False)
© examsnet.com
Advertisements
Go to Question: