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

group by grouping sets and case when grouping - topic by pirrejo

$
0
0
Hello All,   When using group by grouping sets, I have always resorted to using longwinded case statements (as in the example below), but thought there must be an easier and cleaner way...is there?  I know you can use case when grouping (t_team_nm) = 1 then 'Subtotal'...but I have only gotten that to work for subtotals on one field...not subtotals on a combination of multiple fields. Thanks! sel

read more


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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