I was asked this question earlier, and not being able to answer it has been bothering me..
Lets say we have a table with clients and their city of residence.
What if I wanted to query for the unique number of cities, AS WELL as how many times each city appears.
To be more clear:
Toronto
Toronto
Toronto
Oshawa
Oshawa
Distinct cities: 2
Toronto: 3
Oshawa: 2
The answer is probably simple, my mind is just mush at the moment!