Reputation: 1093
Note- not all columns are listed here in the Master Table for brevity. Psuedo code of the where clause -
My where clause goes like this (with some selected conditions) -
But this appears to give incorrect answer. Perhaps something is wrong with the logic. Please advice.
Upvotes: 0
Views: 3725
Reputation: 46219
You can try this
SELECT *
FROM [MASTER]
WHERE
Ship_country in ('A','B','C','D')
AND
(
(customer_number <> 'A2')
OR
(customer_number <> 'B2')
OR
(customer_number NOT IN ('C1', 'C2'))
)
Upvotes: 2