For example, if I have a data-set as below
ID ITEM
1 A
2 B
3 C
1 B
1 C
2 A
then need a sql query which gives output as below:
ID ITEM
1 A, B, C
2 B, A
3 C
That is how to group based on ID and display all the values pertaining to another column attributes in SQL.