Hi all,
Fairly new at SQL, and running into the following problem. I am trying to create a query to count the number of unique fields in a column and display, but can't seem to get it right. For example, each day there are x number of entries from y number of countries, and I want to display the result as such:
Country Count
CA 4
US 2
UK 7
DE 3
I am able to get the total count of unique values in the country column by using: SQL COUNT(DISTINCT country), but this doesn't help me count and order by country. Any thoughts, or a gentle push in the right direction would be greatly appreciated!
Thanks,
James