I have a table
Col A Col B
===============
1 a
1 b
1 c
2 a
2 b
3 a
And I want it to look like this:
Col A Col B Col C Col D
===============================
1 a b c
2 a b
3 a
Of course this is highly simplified. I would like this for any N number of distinct variations of Column B values with any M number of distinct variations for column A values.
This is for MS-SQL 2014 if that helps.
Thank You for your time.