Page 1 of 1

how to do reverce pivoting

Posted: Mon Aug 03, 2009 10:50 am
by adisheshu.dwh
hi how can do reverse pivoting
i/p
ename
aaa
bbb
cccc


o/p
aaa,bbb,cccc

Posted: Mon Aug 03, 2009 1:26 pm
by datskosaraju
That is not reverse pivoting,that is Vertical Pivoting.

Posted: Mon Aug 03, 2009 3:45 pm
by samsuf2002
And can be achieved using PIVOT stage in parallel job.

Posted: Mon Aug 03, 2009 3:50 pm
by chulett
Afraid not, not until that "direction" is added in a future release as the pivot stage just does columns to rows. This needs a "stage variable concatenation" approach in a transformer to solve, probably with a dummy/trailer row to push out the last group when it hits EOD.

Posted: Mon Aug 03, 2009 4:10 pm
by samsuf2002
chulett wrote:Afraid not, not until that "direction" is added in a future release as the pivot stage just does columns to rows. This needs a "stage variable concatenation" approach in a transformer to solve, probably with a dummy/trailer row to push out the last group when it hits EOD.
You are right Craig, I was bit confused in vertical and horizontal pivoting. I believe the transformer logic for this requirement has been discussed here a lot.

Posted: Mon Aug 03, 2009 4:35 pm
by chulett
It has, and quite recently as well. A search for "vertical pivot" should turn them up. You'll even find one about the "Flush Record" I spoke of needing.