I have found examples for concatenating multiple rows of a single column, but I have been having difficulties in applying it for two columns or more. Here is example of the table:
ID Col1 Col2 Col3
1 1A 2A 1
2 1B 2B 2
2 1C 2C 3
3 1D 2D 4
3 1E 2E 5
Desired result:
ID Col1 Col2 Col3
1 1A 2A AGGREGATE such as MIN
2 1B,1C 2B,2C "
3 1D,1E 2D,2E "
How could I accomplished the above? Thanks.
WITHtechnet.microsoft.com/en-us/library/ms186243(v=sql.105).aspx