Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 07 Sep 2004 @ 19:31:41 GMT





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




Subj:   Re: XOR
 
From:   Scott Thompson



Hi Rudel,

the following should effectively implement an XOR in Teradata :

     select *
     from View1
     where ((field1 IS NULL AND field2 IS NULL) OR
            (field1 IS NOT NULL AND field2 IS NOT NULL) )

hope this helps,

-scott t.





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