SELECT *
FROM mytable
WHERE country <> 'United Kingdom'
SQL Query WHERE is not [closed]
-
19-10-2022 - |
Question
Hi I am looking to carry out a query were i have 3 different countries specified and id like to make a where statement find all attributes where the country is no = United Kingdom. Any ideas how to do this?
Solution
OTHER TIPS
Try with:
SELECT *
FROm table
WHERE country <> 'United Kingdom'
Have you tried the inequality operator, <>
?
SELECT *
FROM tblAttributes
WHERE Country <> 'United Kingdom'
You can use NOT IN
:
SELECT *
FROM country
WHERE name NOT IN('United Kingdom')
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow