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

Filter a query based off another query

Status
Not open for further replies.

ddecker3

IS-IT--Management
Aug 8, 2007
15
US


Is it possible to set the critiera for a query based off another query?

I have 2 tables: employee and quals

I know how to pull from both tables to say which employee are qualed.
But how do I pull all employees that are not qualed.

Basically if they are on both lists how do I not pull them up.
I know its confusing.


 
Do you mean:

[tt]SELECT Employees.EmpID
FROM Employees
LEFT JOIN Quals
ON Employees.EmpID = Quals.EmpID
WHERE Quals.QualID Is Null[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top