Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 11 Apr 2008 @ 16:20:20 GMT


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


Subj:   Re: Query to identify the Decimal
 
From:   Michael Larkins

Hello Satyamadhav:

  Are you sure you want the whole query to fail?  


I had the same thought and since David expressed my same concern so well, what if you did something like this:

     case when col.id <>0.0
          then cast(col.id as float)
          else 'failure'.

This will display the word failure whenever the col.id value is = 0 (zero). Of course you could use any word, even 'zero' to express the fact that your sql to make it a float.


Regards,

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