southbeach
Programmer
Given tableA and colSize, I need a row count for each value in colSize.
Values can be 10, 20 and 40
tableA has a unique key that I intend to use to match my query against.
So, if I had rows
key colSize
----+--------
1 10
2 40
3 20
4 20
5 40
I expect counts to be
Count Size
-----+------
1 10
2 20
2 40
I know of COUNT(*) but I cannot figure out how to do multiple count and conditions within a single query.
Thank you all for your help!
Values can be 10, 20 and 40
tableA has a unique key that I intend to use to match my query against.
So, if I had rows
key colSize
----+--------
1 10
2 40
3 20
4 20
5 40
I expect counts to be
Count Size
-----+------
1 10
2 20
2 40
I know of COUNT(*) but I cannot figure out how to do multiple count and conditions within a single query.
Thank you all for your help!