disitinc count code example Example: select count of distinct values sql Click to copySELECT COUNT (DISTINCT column-name) FROM table-name