Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 17 Jul 2009 @ 09:33:24 GMT


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


Subj:   Re: Rounding up values in terdata
 
From:   Alves, Patrick

Hi,

     select 2.1 as a
     , case when a mod cast(a as integer)<> 0
            then cast(a as integer) +1
            else cast(a as integer)
            end as my_rounded_value;

Regards.

Patrick



     
  <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