distinct with count sql code example Example: sql find all different values in column SELECT DISTINCT column_name FROM table_name;