SQL SELECT DISTINCT Statement
SQL SELECT DISTINCT Statement
« Previous
Next Chapter »
The SELECT DISTINCT statement is used to return only distinct (different) values.
The DISTINCT keyword can be used to return only distinct (different) values.
Demo Database
In this tutorial we will use the well-known Northwind sample database.
Example
SELECT DISTINCT City FROM Customers;
Try it yourself »