Hi,
I have a table - something like:
A|B
1|1
1|2
1|3
2|1
2|3
2|4
2|5
3|5
My query returns the distinct values in A if they coincide with a value in B of 1 or 2 - so
A
1
2
I am trying to also return the original count of the 1's and 2's in column A - to get something like
A|Count
1|3
2|4
Is there a simple way to get this count please? However, the COUNT (A) returns the number of A's coinciding with the initial WHERE statement:
A|Count
1|2
2|1
Thanks!