I am looking to return one row that merges multiple rows so for the example table:
ID | VAL1 | VAL2
1 | v1 | v2
1 | v3 |v4
I would like to return:
ID|VAL1|VAL2|VAL1_1|VAL2_1
1 | v1 | v2 | v3 | v4
Where ID|VAL1|VAL2|VAL1_1|VAL2_1 are the column headers
I dont believe a pivot can work as the values (v1 etc) can be any value.
Any help would be greatly appreciated