📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which constraint ensures that a column contains only unique, non-NULL values?

A. CHECK
B. PRIMARY KEY ✅
C. FOREIGN KEY
D. DEFAULT

Correct Answer: B. PRIMARY KEY

Explanation

A PRIMARY KEY constraint guarantees uniqueness and forbids NULL values in the key column.