Change One Column data to One row (Pivot)

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ambasta
Participant
Posts: 93
Joined: Thu Jan 19, 2006 10:29 pm
Location: Bangalore

Change One Column data to One row (Pivot)

Post by ambasta »

Hi All,
I have one requirement to convert the data coming in multiple rows to one row.
I will try to explain the scenario with an example.
Data is like
Col A
====
1000
2000
4570
2345

The requirement is to get the data like
Col A
====
1000,2000,4570,2345

Source is Oracle and Target is File.

Thanks for your time.

*Note: Title Changed to be more descriptive - Content Editor *
ambasta
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That is called 'pivoting' the data, specifically a vertical pivot of rows to columns and of which a search for that phrase would turn up many conversations on the topic.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply