I would like to count each distinct values from certain column in ACCESS DB. Let's say I have values like:
1
1
1
2
3
3
3
3
I need to get the number of each distinct values and show the value, something like:
1, 3
2, 1
3, 4
I tried using:and some variations of this query, but e.g. this query just shows total number of distinct values. DB version is ACCESS 2k. Is there a way to do what I'm after?Code:qry = "SELECT COUNT(*) FROM (SELECT DISTINCT description FROM expenses GROUP BY description)"