I have a simple enough query that works well:
SELECT
Name, JobStatus
FROM
ScheduleRequest
WHERE
ScheduleDate >= '2018-07-11'
AND
JobStatus <> 6
I need to check for different values in the same field 'JobStatus'. When I try to alter the query like this, I'm finding only the last value of 95 is showing?
SELECT
Name, JobStatus
FROM
ScheduleRequest
WHERE
ScheduleDate >= '2018-07-11'
AND (JobStatus <> 6
OR JobStatus <> 0
OR JobStatus <> 1
OR JobStatus <> 4
OR JobStatus <> 95
)
ANDinstead ofORor just use the proposed answer withNOT IN.