Archives of the TeradataForum
Message Posted: Thu, 11 Sep 2003 @ 19:35:25 GMT
Is their a function in teradata SQL similar to the ceil function in SAS (which rounds any non-integer value up to the next highest integer)?
I'd like to do something like this:
select sum(ceil(mou)) as mou
because I have CDR's with non-integer values for mou and I want to round them up before summing, not just round up the sum.
For example, if mou has the values 2.5, 3.5, 4, and 4.5 I want to have the result 16 (3+4+4+5); summing and then rounding up gives the value 15.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|