The Table is in the following format:
ID Category
1 a
1 b
2 a
2 b
2 c
I want the output in the following format
ID Category
1 a,b
2 a,b,c
Please suggest a efficient way