Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 15 Nov 2005 @ 14:05:15 GMT


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


Subj:   Re: Cast Function
 
From:   Michael Larkins

Andene:

If you are getting a numeric overflow you are casting too late. You need to change the data type before the calculation. I don't know the data type of either balance nor irate, but you can adjust it as needed in doing something like:

     Case when Rate = 'Credit'
          then (balance(dec(16,2))* Irate)/12*100 end

Hope this helps,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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