Free SQL DISTINCT Generator
Build SELECT DISTINCT and COUNT(DISTINCT) queries visually. Find unique values or count distinct entries in your database.
DISTINCT applies to the combination of all selected columns
Add WHERE conditions to filter rows before applying DISTINCT
Table name is required
-- Please enter a table name
Your data stays private
This tool runs entirely in your browser. Your table and column names are never sent to any server.
Other Tools
Try our other free tools!
SQL DISTINCT Guide
Need to see what columns have unique values?
ChartDB visualizes your database schema so you can see every table and column at a glance. Understand your data structure before writing DISTINCT queries.
See all columns & typesUnderstand table relationshipsImport from any database
Try ChartDB FreeNo credit card required