English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Usage and Example of SQL SELECT DISTINCT Keyword

SQL Keyword Reference

SELECT DISTINCT

The SELECT DISTINCT command returns only different (distinct) values in the result set.

The following SQL statement selects DISTINCT values from the 'Country' column of the 'Customers' table:

SELECT DISTINCT Country FROM Customers;

SQL Keyword Reference