Why can\'t we use count(distinct *) in SQL? As in to count all distinct rows?
count(distinct *)
COUNT(*) is the number of rows matching a query.
A row contains unique information such as rowid. All rows are by definition distinct.
You must count the distinct instances of values in some field instead.