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

Creating Group ID from SUM Limit - response (5) by ToddAWalter

$
0
0

This is missing the join to and division by the grand total. That is necessary in order to make the running sum a percentage contribution.  And I left off the multiplication of that result by 100 before the division by the number of buckets.
 
In your sample you order by NUMOF? rather than QTY_SOLD.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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