K
kbhat
Suppose I want to add all the numbers in one column, with the
following caveat:
All values should be capped at some high threshold level.
As an example, suppose the threshold is 10000 and the numbers in the
column are 7500, 8500, 9500, 10500, 11500 and 12500. The query should
return 555000 (which is 7500 + 8500 + 9500 + 10000 + 10000 + 10000).
Any help will be appreciated.
Thanks,
Bhat
following caveat:
All values should be capped at some high threshold level.
As an example, suppose the threshold is 10000 and the numbers in the
column are 7500, 8500, 9500, 10500, 11500 and 12500. The query should
return 555000 (which is 7500 + 8500 + 9500 + 10000 + 10000 + 10000).
Any help will be appreciated.
Thanks,
Bhat