Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 22 Apr 2015 @ 20:22:25 GMT


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


Subj:   Re: Teradata Decimal Precision issue
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, April 22, 2015 12:34 -->

Actually, I don't think simple multiplication and division will work. But the principle of truncating to a lower-precision value and separately difference might. Something along the lines of exporting

     TO_BINARY_FLOAT(colX), (colX - TO_BINARY_DOUBLE(TO_BINARY_FLOAT(colX)))

and then adding the two values together after loading.

Or maybe changing TO_CHAR and back again.



     
  <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: 23 Jun 2019