Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Wed, 16 Apr 2008 @ 16:52:18 GMT





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




Subj:   Re: Query to identify the Decimal
 
From:   Greene, Thomas L



  So I need a sql query that would cast decimal column to float if the data is not equal to zero and fails if the input data is zero.  


I have no idea what you're really trying to accomplish, but the following query does what you described.

     abort 'Fail: Zero Value Not Allowed'
     from T1
     where 0.0 IN (select c1 from T1)
     ;select cast(c1 as float) from T1;




     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 16 Nov 2008