Hi all,
I have a table (Table1) that looks like:
cnt Type
---- ----
1 5
2 5
3 5
4 6
5 5
6 6
7 5
8 6
Record 4 is type 6 and is directly after record 3 and should be on the same row as record 3.
...and so on
Based on Table1 I would like to create a new table:
cnt1 Type1 cnt2 Type2
----- ---- ---- -----
1 5
2 5
3 5 4 6
5 5 6 6
7 5 8 6
How can I do this with SQL-syntax?
/Kent J.
I have a table (Table1) that looks like:
cnt Type
---- ----
1 5
2 5
3 5
4 6
5 5
6 6
7 5
8 6
Record 4 is type 6 and is directly after record 3 and should be on the same row as record 3.
...and so on
Based on Table1 I would like to create a new table:
cnt1 Type1 cnt2 Type2
----- ---- ---- -----
1 5
2 5
3 5 4 6
5 5 6 6
7 5 8 6
How can I do this with SQL-syntax?
/Kent J.