How can I transform query results into a aggregated rows? Probably not the best explanation, but this is the objective: (using SQL specifically)
Transform this:
Col1 Col2
--------------
123 A
123 B
123 C
45 H
45 K
45 L
89 A
Into this
Col1 Col2
--------------
123 A,B,C
45 H,K,L
89 A
Thanks in advance.
EDIT: Turns out this is a MSSQL Server version 2012