Beginner SQL
Q34 / 100

What is the purpose of the UNIQUE constraint?

Correct! Well done.

Incorrect.

The correct answer is A) Ensures all values in a column are different from each other

A

Correct Answer

Ensures all values in a column are different from each other

Explanation

UNIQUE ensures that all values in a column (or combination of columns) are distinct across the table, though unlike PRIMARY KEY, multiple NULLs may be allowed depending on the database.

Progress
34/100