Well, the MAx command isn't behaving as i would expect it to. In the query below i would only expect one row returned for each value of Alert due to the MAX group by ALert , but that is not the case. Can anyone point me in the direction of the light?select dbo.Device.Name as DeviceName, dbo.DeviceGroup.Name as GroupName, dbo.Employee.Name as Employee, newhist.Reason as Reason, Alerting.Type.Name as Typefrom Alerting.HeldDetail LEFT JOIN ( select h.StatusTime, h.StatusUser, h.Reason , h1.Alert from Alerting.History AS h RIGHT JOIN ( select h1.Alert, MAX(h1.StatusTime) as statustime from Alerting.history as h1 group by h1.Alert ) As h1 ON h.Alert=h1.Alert)as newhist ON Alerting.HeldDetail.Alert=newhist.Alert LEFT JOIN Alerting.Message on Alerting.HeldDetail.Alert=Alerting.Message.Alert LEFT JOIN dbo.Device on Alerting.Message.Device=dbo.Device.IDLEFT JOIN dbo.DeviceGroup on dbo.Device.DeviceGroup=dbo.DeviceGroup.idLEFT JOIN dbo.Employee on newhist.StatusUser=dbo.Employee.idLEFT JOIN Alerting.Alert on Alerting.HeldDetail.Alert=Alerting.Alert.IDLEFT JOIN Alerting.Type on Alerting.Alert.Type=Alerting.Type.ID