Hi !
I need to perform folowing task
Table 1 :
id Col1 Col2 Col 3
1 2 NULL NULL
1 NULL 3 NULL
1 NULL NULL 4
I need to group by according ID and to create one row in target table :
id Col1 Col2 Col 3
1 2 3 4
I there any STAGE to do it fast ? It seems the task is something opposite of task pefomed by stage PIVOT
Help to perfom Vertical Pivot
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There's no stage for performing a vertical pivot (which is what you are asking for). Search the forum for "vertical pivot"; you should get at least two techniques, each involving an intermediate passive stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom