An Opposite Report

A

Ant

Hello, and thanks in advance for your help.

I have three tables in my database as follows:

1. Employee - self explanatory
2. Qualfications - a list of licences, certificates, endorsements
3. Employee/Qualification Join - to link the various types of work
qualifications each employee has.

From this I have created two reports that show:

1. For each employee, the qualifications they hold and the expiry dates of
those qualifications
2. For each qualifictation, which employees have them.

MY PROBLEM IS....

I was just asked to create a report that lists the employees that don't have
a particular qualification. For example, print the list of employees that
don't have a first aid certificate.

I have tried various queries, but have had no luck. Any suggestions.

Regards
Ant
 
K

KARL DEWEY

Try this --
SELECT Employee
FROM (tblEmployee LEFT JOIN [Employee/Qualification] ON tblEmployee.EmpID =
[Employee/Qualification].EmpID) LEFT JOIN tblQualfications ON
[Employee/Qualification].QualID = tblQualfications.QualID
WHERE tblQualfications.Qualfication = "First Aid" AND
tblQualfications.QualID Is Null
ORDER BY Employee;
 

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