With the excellent help of these boards I have created the following sql query to select records based on the maximum training start date with a course id of 44. Good start, but i now need to only select records that have a start date of greater than 365 days from these result?? Any ideas??
Thanks
Paul.
Code:
SELECT s.RecordNo, s.Surname, s.Forename, t.MostRecent, t.RecordID
FROM staff AS s INNER JOIN [SELECT RecordID, Max(StartDate) AS MostRecent FROM training WHERE CourseID=44 GROUP BY RecordID
]. AS t ON s.RecordNo = t.RecordID;
Thanks
Paul.