I have tables like this:
ID Status
----------- -----------------
a 3
b 3
c 1
d 2
e 1
How can i query it such that the count for each status is in 1 column:
Status=1 Status=2 Status=3
-------- -------- --------
2 1 2
is it necessary to Select from multiple Select of Count here?
NOTE: the Status is not fixed and may contain values besides 1, 2 and 3