I think this will give you what you wantSELECT LS.SID, LS.FirstName, LS.LastName, C1.Yearcode, MIN(C1.[Level]) AS [Level], MIN(C2.Previous) AS PreviousFROM LearningStuds LS LEFT JOIN Comittees C1 ON LS.SID = C1.SID LEFT JOIN (SELECT C3.vid, C3.[Level] AS Previous FROM Comittees C3 INNER JOIN (SELECT sid, MIN([Level]) AS [Level] FROM Comittees GROUP BY SID) C4 ON C3.SID = C4.SID WHERE C3.[Level] > C4.[Level]) C2 ON C1.vid = C2.vidWHERE Yearcode = 26 GROUP BY LS.SID, LS.FirstName, LS.LastName, C1.Yearcode
AndyBeauty is in the eyes of the beerholder