What type of TSQL statement can be used to read from data in Table1 (below) and produce the Expected Results (below):
With the following data in Table1:
ID Field1 Field2 Field3
----------------------------------------------------------------
1 R1F1 R1F2 R1F3, R1F4, R1F5, R1F6
2 R2F1 R2F2 R2F3, R2F4, R2F5, R2F6
Expected Results A SQL Statement that would produce the following results:
ID Field1 Field2 Col1 Col2 Col3 Col4
----------------------------------------------------------------
1 R1F1 R1F2 R1F3 R1F4 R1F5 R1F6
2 R2F1 R2F2 R2F3 R2F4 R2F5 R2F6