Computer Science for IGCSE & O level - Databases (Section 5 - No. 15)

In an SQL query, what does the `DISTINCT` keyword do?
Sorts the results alphabetically.
Returns only unique values in a column.
Filters the results based on a condition.
Adds new data to the table.

Explanation

The `DISTINCT` keyword ensures that only unique values from a column are returned in the query results.

Comments (0)

Advertisement