I am trying to get a record set that does not include values that are considered blocked. Normally I would do this:
SELECT Value_1, Value_2, Value_3, Value_4, Value_5
FROM tbData
WHERE Value_1 NOT IN (SELECT Value_1 FROM tbBlockedValues)
The problem is, tbBlockedValues has 2 fields and it has to match a row in tbData to block it. I cannot use several NOT statements because it would not fit the requirement that the two fields be in the same row. Each would appear in any row indepedent of each other.
I've tried joins, putting it into a temp table then deleting rows, but I'm out of ideas.
Thank you,
Jason
SELECT Value_1, Value_2, Value_3, Value_4, Value_5
FROM tbData
WHERE Value_1 NOT IN (SELECT Value_1 FROM tbBlockedValues)
The problem is, tbBlockedValues has 2 fields and it has to match a row in tbData to block it. I cannot use several NOT statements because it would not fit the requirement that the two fields be in the same row. Each would appear in any row indepedent of each other.
I've tried joins, putting it into a temp table then deleting rows, but I'm out of ideas.
Thank you,
Jason