Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

DISTINCT

SELECT DISTINCT

The SELECT DISTINCT command retrieves only unique values from the result set.

The provided SQL statement selects only the DISTINCT values from the “Country” column in the “Customers” table.

Example

SELECT DISTINCT Country FROM Customers;