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

Pivot Data by Month - response (3) by ulrich

$
0
0
still no ddl and inserts... but in this case it should be simply   Select state_ind,           sum(State_Count ),           max(Total ),           max(case when Month_ = 'July' then State_Count else null end) as July,           max(case when Month_ = 'August' then State_Count else null end) as August From ... group by state_ind check the standard SQL aggregation documentation...    

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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