TABLE-A have the data as follows:
COLUMN1 COLUMN2
1 A
1 B
1 C
2 A
2 G
3 F
4 T
4 K
I want the RESULT as follows:
COLUMN1 COLUMN2
1 A,B,C
2 A,G
3 F
4 T,K
Description
You can use the
T-SQLfunctionSTUFFfor that.Sample
More Information
STUFF (Transact-SQL)