Which SQL keyword is used to retrieve only unique values?
-
UNIQUE
-
DIFFERENT
-
DISTINCT
-
DISTINCTIVE
C
Correct answer
Explanation
DISTINCT is the SQL keyword used to retrieve only unique values from a column, eliminating duplicate rows in the result set. UNIQUE is a constraint used during table creation to enforce uniqueness, not for data retrieval. DIFFERENT and DISTINCTIVE are not valid SQL keywords.