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