Archives of the TeradataForum
Message Posted: Fri, 11 Apr 2008 @ 16:20:20 GMT
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
|