Hi
I have a table named test with two fields: ID and value
And I insert these records:
ID value
1 a
2 b
3 a
4 a
5 c
6 b
7 a
8 d
I want to write an SQL query to get this result:
a b c d
4 2 1 1
How can I get this result?
Note: I know I can use COUNT with GROUP BY, but I want to get this data with only 1 fetching.
Thanks in advance