Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 11 Sep 2003 @ 19:35:25 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Rounding and the ceil function
 
From:   Burton, Bruce

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:

proc sql;
....

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.


Thanks,

Bruce



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023