Hi,
I have a query bringing back two values that are connected, but not directly in a lookup table. (There is a many to many relationship between one of the values and a value that's connected to the other one).
Is there a way to use a NOT IN clause for two values, or something that would have the same effect?
I.E. :
Select Customer, Seminar from .... (long from clause involving 4 tables) where Customer, Seminar NOT IN
(Select Customer, Seminar from ..... (lots of joins, 4 tables, brings back the ones I want to exclude)
I hope this makes sense; I have a query with all possible combinations, and I have a subquery with the values I want to exclude, but there's no ID that directly applies to these values, they're each unique by the customer and seminar values together.
Thanks for any advice,
Ray
I have a query bringing back two values that are connected, but not directly in a lookup table. (There is a many to many relationship between one of the values and a value that's connected to the other one).
Is there a way to use a NOT IN clause for two values, or something that would have the same effect?
I.E. :
Select Customer, Seminar from .... (long from clause involving 4 tables) where Customer, Seminar NOT IN
(Select Customer, Seminar from ..... (lots of joins, 4 tables, brings back the ones I want to exclude)
I hope this makes sense; I have a query with all possible combinations, and I have a subquery with the values I want to exclude, but there's no ID that directly applies to these values, they're each unique by the customer and seminar values together.
Thanks for any advice,
Ray