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

Transpose rows to columns - response (20) by gerardo

$
0
0

try,
 
select id, name,   
max(case when subjkect ='Maths' then msk else null end),
 max(case when subjkect ='Science' then msk else null end),
 max(case when subjkect ='english' then msk else null end)
from table
group by 1,2


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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