Em 18/12/2017 14:28, Michael Nolan
escreveu:
I believe that having a built-in function for percentage is not a good idea. Is just like having a function to calculate fractions... Someone would like to have percentages as 0..1, others would like to have it multiplied by 100. How to deal with integers? And so on (as others already stated here). But, is it possible to have a aggregate function that calculates de percent from the sum (and/or count) total (as a value from 0 ... 1) for numeric (or double)? Looking really superficially seems to me that would be a great addition to the aggreggates (and is not just a trivial div/multiply op) Edson |