Not In?

N

newperson

I am using SQL in Access 2003
I have a query, 'A'
I selected certain data from query 'A', to create query 'B'
I want to create a query 'C' that includes all data from 'A' not in 'B'
How do I do this? Maybe the answer is right in my face!

Thanks!!
 
B

Bob Barrows

newperson said:
I am using SQL in Access 2003
I have a query, 'A'
I selected certain data from query 'A', to create query 'B'
I want to create a query 'C' that includes all data from 'A' not in
'B' How do I do this? Maybe the answer is right in my face!
Use an outer join between the two queries.
Select A.*
FROM A left outer join B on A.keyfield=B.keyfield
WHERE B.keyfield IS NULL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top