I want to count the number of times a column value appears in my returned grouped data.
SELECT a, b, c
FROM whatever
GROUP BY a, b, c
I'm looking for a count of the distinct values with the returned data. So not rows in the database, but the new grouped table.
SELECTs within SELECTs hurt my head so please be gentle.