Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Transpose columns to rows - forum topic by Chandrashekarks

$
0
0

Hi All,
         Here is scenario:
Cust   Act_cnt  Act1   Act2  Act3  Act4  Act5  ....... Act15
A          2          A01    A02   ?       ?      ?  ...............?
B          1          B01     ?      ?       ?      ?  ...............?
C          3          C01   C02   C03   ?      ?  ...............?
 
after transpose I would like to have result like:
Cust   Accnt
A        A01
A        A02
B        B01
C        C01
C        C02
C        C03
 
           Can I use recursive to transpose as acct_cnt is available? Please suggest an approach.
 
Regards
Chandrashekar

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>