Hi,
The end result that I am trying to get from the following query is just give me the ProjectID's that are in the Projects table BUT are not in the Task Table.
I am trying to do this with the not equal operator, but that does not seem to be giving the correct results. Can someone point me in the right direction?
Thanks
Sue
Query:
SELECT Projects.ProjectID, Projects.StartDate, Projects.ShipDate, Projects.DueDate, Projects.Customer, Projects.Unit, Projects.NonEESUnit,
Projects.Name, Projects.Description, Projects.Site, Projects.JobSiteContact
FROM Projects INNER JOIN
Tasks ON Tasks.ProjectID <> Projects.ProjectID
GROUP BY Projects.ProjectID, Projects.StartDate, Projects.ShipDate, Projects.DueDate, Projects.Customer, Projects.Unit, Projects.NonEESUnit,
Projects.Name, Projects.Description, Projects.Site, Projects.JobSiteContact
ORDER BY Projects.ProjectID
The end result that I am trying to get from the following query is just give me the ProjectID's that are in the Projects table BUT are not in the Task Table.
I am trying to do this with the not equal operator, but that does not seem to be giving the correct results. Can someone point me in the right direction?
Thanks
Sue
Query:
SELECT Projects.ProjectID, Projects.StartDate, Projects.ShipDate, Projects.DueDate, Projects.Customer, Projects.Unit, Projects.NonEESUnit,
Projects.Name, Projects.Description, Projects.Site, Projects.JobSiteContact
FROM Projects INNER JOIN
Tasks ON Tasks.ProjectID <> Projects.ProjectID
GROUP BY Projects.ProjectID, Projects.StartDate, Projects.ShipDate, Projects.DueDate, Projects.Customer, Projects.Unit, Projects.NonEESUnit,
Projects.Name, Projects.Description, Projects.Site, Projects.JobSiteContact
ORDER BY Projects.ProjectID