SQL SERVER: where clause doesn't work in some way -
hi have question regarding sql server
where
filter clause.
select person region not '%france%' , region not '%america%' , country not '%france%' , country not '%america%' or region null or country null
by using code, displays joh/lily/hu.
how can result appears results not contain words 'france' , 'america'? the result should lily/hu.
many in advance.
from 1 of comments:
i don't want display containing "france" in either region or country column, displays null rows.
select person ( (country not '%france%' , country not '%america%') or country null ) , ( (region not '%france%' , region not '%america%') or region null )
Comments
Post a Comment