Home › SQL Tutorial › SQL SELECT and DISTINCT
SQL SELECT and DISTINCT
Choose columns and remove duplicates.
SELECT picks the columns to show. SELECT DISTINCT removes repeated values. Keywords are not case-sensitive and every statement ends with a semicolon. Comments start with --.
Example code
-- columns
SELECT name, city FROM Customers;
-- unique values
SELECT DISTINCT country FROM Customers;