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

Re: Alternative to Negative Conditions: NOT

$
0
0

Not sure quiet what your objection to NOT is but one alternative is to take the negation inside the brackets, You can also use not equals as the condition to avoid having to negate each individual conditions

 

SELECT name state

FROM country

WHERE state <> 'CA' AND state <> 'WA' AND state <> 'IL' AND state <> 'NY'


Viewing all articles
Browse latest Browse all 8459

Trending Articles



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