What are the best ways to transform the below output in SQL.
I got the result by outer join the same table multiple times. Any help is appreciated.
Col1 Col2
A 1
B 2
C 3
D 4
E 5
Should transform to
Col1 Col2 ..................................col10
A 1
A 1 B 2
A 1 B 2 C 3
A 1 B 2 C 3 D 4
A 1 B 2 C 3 D 4 E 5
Thanks
Jim
I got the result by outer join the same table multiple times. Any help is appreciated.
Col1 Col2
A 1
B 2
C 3
D 4
E 5
Should transform to
Col1 Col2 ..................................col10
A 1
A 1 B 2
A 1 B 2 C 3
A 1 B 2 C 3 D 4
A 1 B 2 C 3 D 4 E 5
Thanks
Jim