meltingpot
Technical User
As a beginer,Im trying to SUM values in a single field where they meet the critria below.
The field is wish to SUM is "SERVICELEVEL"
I wish to SUM the following
addressbook.ServiceLevel='Officer' +
addressbook.ServiceLevel='Senior Ranks' +
addressbook.ServiceLevel='Junior Ranks' = x
The critiria
SELECT *
FROM Courselist INNER JOIN (addressbook INNER JOIN Applications ON addressbook.PersonID = Applications.PersonID) ON Courselist.CourseID = Applications.CourseID
WHERE addressbook.Service='RN' AND addressbook.ServiceLevel='Officer' AND(Applications.StatusCode='Passed' OR Applications.StatusCode='Failed') AND courselist.CourseTitle=coursename AND courselist.EndDate BETWEEN enddate1 AND enddate2
Im a bit stummped
The field is wish to SUM is "SERVICELEVEL"
I wish to SUM the following
addressbook.ServiceLevel='Officer' +
addressbook.ServiceLevel='Senior Ranks' +
addressbook.ServiceLevel='Junior Ranks' = x
The critiria
SELECT *
FROM Courselist INNER JOIN (addressbook INNER JOIN Applications ON addressbook.PersonID = Applications.PersonID) ON Courselist.CourseID = Applications.CourseID
WHERE addressbook.Service='RN' AND addressbook.ServiceLevel='Officer' AND(Applications.StatusCode='Passed' OR Applications.StatusCode='Failed') AND courselist.CourseTitle=coursename AND courselist.EndDate BETWEEN enddate1 AND enddate2
Im a bit stummped