Live SQLite 3.54 Sandbox
SQL SELECT DISTINCT (with live sandbox)
SELECT DISTINCT removes duplicate values from your query results — identical to Remove Duplicates or UNIQUE() in Excel.
Syntax
SELECT DISTINCT column_name FROM table_name;Return every unique city from the customers table using SELECT DISTINCT.
SQLite 3.50 SandboxCtrl/Cmd + Enter to Run (unlimited & ungraded)
Practise SELECT DISTINCT in our free SQL track
Same streak & XP across Excel, Google Sheets, and SQL.
Free 1-Page Excel, Google Sheets & SQL Interview Cheat Sheet
The 25 formulas, keyboard shortcuts, and SQL patterns tested most in analyst interviews — emailed instantly, zero spam.