Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help to create my query

Status
Not open for further replies.

6183

Technical User
Jan 12, 2005
1
BE
hi people!
I'm quite new in SQL queries.
I have 3 tables, Grp/usr, usrJPE, usrEMS,
I have to select all the usrs that are in Grp/usr but not in usrJPE & usrEMS,
Could you please help me ???
THX - GRTZ
 
A starting point:
SELECT G.*
FROM ([Grp/usr] G
LEFT JOIN usrJPE J ON G.[usr ID] = J.[usr ID])
LEFT JOIN usrEMS E ON G.[usr ID] = E.[usr ID]
WHERE (J.[usr ID] Is Null Or E.[usr ID] Is Null)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top