bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL SELECT DISTINCT Keyword

Select Distinct

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

The following SQL statement selects only the DISTINCT values from the "Country" column in the "Customers" table:

Example

SELECT DISTINCT Country FROM Customers;

Previous

SQL SELECT Keyword

Next

SQL SELECT INTO Keyword