G
Guest
Is it possible to use NOT IN in a query? I have an initial query generated
by form input. I also give the user a chance to include items from another
query. I use the UNION statement to join the two. When the results are such
that both the form generated SQL Statement and the unioned query can return
the same data, I do not want it to show up twice. I was using NOT IN with
the subquery being the SQL of the unioned query.
Can I do this? Do I need to put the NOT IN clause (and subquery) in the
unioned SQL?
Thanks
by form input. I also give the user a chance to include items from another
query. I use the UNION statement to join the two. When the results are such
that both the form generated SQL Statement and the unioned query can return
the same data, I do not want it to show up twice. I was using NOT IN with
the subquery being the SQL of the unioned query.
Can I do this? Do I need to put the NOT IN clause (and subquery) in the
unioned SQL?
Thanks