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

Move column data as rows - response (4) by gerardo

$
0
0

try,
select id,
max(case when name ='a' then value else null end) as A,
max(case when name ='b' then value else null end) as B,
..
 
from  table
group by 1
 
 
Regards
Gerardo
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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