Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 24 Sep 2012 @ 12:27:08 GMT


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


Subj:   Re: In where condition 'not' and 'and is not working together
 
From:   Ng, Edgar

Vinod

Use COALESCE function to cast a temporary value if it is null

     Select * from tablename
       where coalesce(number, 0) = 100
       and coalesce(value,0) = 1;

Edgar Ng



     
  <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