Which constraint ensures that every value in a specific column is unique across all rows in that table, but still permits a NULL value? MCQ with Answer and Explanation
Which constraint ensures that every value in a specific column is unique across all rows in that table, but still permits a NULL value?
A. FOREIGN KEY
B. UNIQUE
C. CHECK
D. PRIMARY KEY
Answer: Option B
Solution (By JKExamLibrary)
The UNIQUE constraint prevents duplicate entries in a column. Unlike a Primary Key, a UNIQUE constraint typically allows one or more rows to store NULL values depending on the database engine.
No comments yet. Be the first to start the discussion!