Why can\'t we use count(distinct *) in SQL? As in to count all distinct rows?
count(distinct *)
You can select all the columns in your table and group by...
SELECT column1, column2, column3, count(*) FROM someTable GROUP BY column1, column2, column3