Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 Mar 2008 @ 20:25:36 GMT


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


Subj:   Re: Comparing blanks and Nulls
 
From:   Anomy Anom

<-- Anonymously Posted: Wed, 19 Mar 2008 13:31 -->

Thanks very much - nesting The NullIF in my COALESCE does what I want.

     COALESCE(NULLIF(COLA, ' '),  '*' ) AS COLA

this also worked:

     COALESCE(NULLIF(COLA, ''),  '*' ) AS COLA

Incidentally, we have an ASCII function that returns a 0 for this value, meaning Null?

When I use the Characters function, it returns 1.



     
  <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