SQL SERVER: where clause doesn't work in some way -


hi have question regarding sql server where filter clause.

enter image description here

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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -