Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 18 Feb 2010 @ 16:08:50 GMT


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


Subj:   Re: Data Type for a large table
 
From:   Barner, Eric

Never mind, I just realized what a stupid question I asked.

Not enough coffee yet today.

I forgot about rounding vs. truncation and the maths are not interchangeable.

For those wondering, the below example illustrates this.

     select cast (4.0 as decimal (2 )) / cast (5.0 as decimal(2))

     select 4/5;

Eric W. Barner



     
  <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