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;
Try it Yourself »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.