Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

How to transpose rows to columns without the use of .sql and Bteqs - response (1) by sachin.sebastian

$
0
0
SELECT Acct_num , Acct_type,           MAX(CASE WHEN Alt_id_type = 'C_id' THEN Alt_id END) AS C_id,           MAX(CASE WHEN Alt_id_type = 'D_id' THEN Alt_id END)  AS D_id,           MAX(CASE WHEN Alt_id_type = 'E_id' THEN Alt_id END)  AS E_id FROM Alt_tbl GROUP BY Acct_num, Acct_type

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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