Queries, Queries Bl*&%y Queries!!!

Sam Summers

Registered User.
Local time
Today, 15:55
Joined
Sep 17, 2001
Messages
939
Hi guys,

They just stump me! Sometimes i get them right and others just seem impossible?

All i want to do is to display all employees even the ones with the "JobID" field and "JobName" field blank but can i get this to work.................
____________________________________________________________

SELECT Employee.EmployeeID, Employee.FirstName, Employee.Surname, Employee.National, Employee.Contract, Employee.RopeAccess, Employee.Level, Employee.MobDate, Employee.DeMobDate, Employee.JobID, Job.JobName

FROM Employee

INNER JOIN (Job INNER JOIN EmpJob ON Job.JobID = EmpJob.JobID) ON Employee.EmployeeID = EmpJob.EmployeeID

WHERE (((Employee.JobID) Is Not Null)) OR (((Employee.JobID) Is Null))

ORDER BY Employee.FirstName;
_______________________________________________________________

A lot of thanks in advance if someone can a) tell me what i am doing wrong?

and b) point me in the right direction?
 
Double click on the relationship.
Choose "Show all records from table "Employes" and only.... etc
 
Thanks for your reply.

I tried all options in the relationship before and that didn't work?

Stumped

:banghead:
 
Google w3schools SQL

Try some examples. Learn the basics.
Good luck.
 

Users who are viewing this thread

Back
Top Bottom