My problem is straight forward:
i keep trying to transform the output of a table from
1 a
1 b into 1 a b c
1 c
2 d
2 e into 2 d e f
2 f
The table will have always sets of 3 rows that will become a table with 4 columns like above.
I tried looping and got stuck…
EDIT: is for SQL_SERVER