M
MN
Hi - I need to run a query to find out in a tableA field gender has some
other value than 1,2,3.
But this will product all records ! It was included 1,2,3,4,5...8,9.
If I using "AND" then it come out just records 4,5,6,7,8,9
Is it weird ? Thank you for any reply .
SELECT *
FROM TableA
WHERE gender<>1 OR gender <> 2 or gender<>3;
other value than 1,2,3.
But this will product all records ! It was included 1,2,3,4,5...8,9.
If I using "AND" then it come out just records 4,5,6,7,8,9
Is it weird ? Thank you for any reply .
SELECT *
FROM TableA
WHERE gender<>1 OR gender <> 2 or gender<>3;