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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

queries to make exclusions

Status
Not open for further replies.

shanedavid1981

Programmer
Feb 3, 2005
54
US
hi,

I'm looking to write a query that will exclude records from a main workforce table that are listed in a supervisor table, so that managers/supervisors wouldnt be listed from the workforce table in my mainstream reports...

is there an easy way to do this?

thanks!
 
Just taking wild guesses at the fields in your tables
Code:
Select EmployeeID From tblWorkForce

Where  EmployeeID NOT IN 
       (Select EmployeeID From tblSupervisors)
 
thanks :eek:)

i also remembered i could cheat by modifying an unmatched query between the supervisor and workfoce listings, hehe!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top