query about people who appear in X table and do not appear in Y table

Locomotive

Registered User.
Local time
Today, 06:20
Joined
Mar 12, 2003
Messages
16
how can i make a query about people who appear in one table and do not appear in the other table?

for example:

table - sex workers:

1. Monica
2. Linda
3. Daniel
4. Mahmouda

table - blonde prostitutes

1. Linda
2. Daniel

Querry that I need:

NON BLONDE PROSTITUTES.

Needs to show:

1. Monica
2. Mahmouda

How do I do this?
 
it may be better if you had 1 table of prostitutes and
as field names have
ProstituteId
Firstname
Lastname
HairColour
Nationality
Likes
DisLikes
AreaofExpertise
etc
etc
that way would make it easy to run a query based
on hair colour,nationality or what ever
 
but let's say i'm an illegal female trader who is trading 10.000 woman and can't change anything now... possible to do anything?
 
Wouldn't a 'select' query using a "not equal" condition, to compare the 2 tables, do the trick?

David
 
Last edited:
I have no idea, I'm new to access. :cool:
Thank you very much for your advice.
Could you describe this process?
 
By the way, a better example to what I mean:

I have two tables:

Windows Users
Access Users

Let's say I work in Microsoft and I want to encourage Windows Users to use Access. For this I need to create a query with Windows users that do not use Access.
 
Using you Windows & Access users analogy.

SELECT WINDOWS.EmployeeID, ACCESS.EmployeeID (and whatever other fields you want displayed)
FROM WINDOWS, ACCESS
WHERE WINDOWS.EmployeeID <> ACCESS.EmployeeID;

From what I gather this type of condition should serve the purpose.

Good luck,
David
 
There is a query wizard which does what you want: it's the "Find Unmatched" Wizard.
 

Users who are viewing this thread

Back
Top Bottom