Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 24 Sep 2012 @ 12:10:51 GMT


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


Subj:   In where condition 'not' and 'and is not working together
 
From:   Parvathareddy, Vinod

Hi Experts,

I have a data like

     sel * from tablename ;

     number     value
        100         1
          ?         1
          ?         ?
          ?         2

     sel * from tablename
       where not (number =100 and value='1');

     number     value
          ?         2

But I am expecting if both will satisfy then only it will drop

Expecting results:

     number     value
          ?         1
          ?         ?
          ?         2

Please give a query for this


Thanks

Vinod



     
  <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