how to group by the value in one column and append all the possible values in another column,
e.g.
Col1, Col2
---- ----
1 a
2 a
3 a
1 b
2 b
4 c
and how to get below:
Col1, Col2, count
---- ---- -----
1,2,3 a 3
1,2 b 2
4 c 1