DDR Data Science Interview Practice Test

Access More Questions
Which statement about a unique key is true?
Correct Answer:
A unique key ensures all values in a column are distinct and allows one NULL value.
Explanation:
A unique key enforces that the values in its column (or set of columns) are distinct across all rows. This means a given non-NULL value can appear at most once, so you can identify a row by its unique value. It also allows NULL values; in practice, many databases permit multiple NULLs because NULL represents unknown and NULLs are not considered equal to each other. So the core idea is that a unique key guarantees uniqueness of values and permits NULLs, unlike a primary key which cannot be NULL.

Access more questions from this quiz

Continue to DDR Data Science Interview Practice Test for more practice questions and the full quiz experience.

Access More Questions