Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9110

Alternative to Negative Conditions: NOT

$
0
0

Hello expert,

 

Is there any alternative of negative condition.

 

e.g:

 

SELECT name state

FROM country

WHERE NOT (state = 'CA' OR state = 'WA' OR state = 'IL' OR state = 'NY')


Assume here state field have many values that is CS, CD, WE, etc etc

 

 

Is there any alternative?


Viewing all articles
Browse latest Browse all 9110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>