Hello,Iv got a problem with my query,[url]http://2imgs.com/7be4c1eb38[/url]I want to say:Pull all users whos status is New and they have at least one Completed deliveryThe problem is , iam getting multiple delivery records form one patient, but I would like to see only newest oneSo instead of this result:2014-05-10 00:00:00.000 Completed Reed Brewer New 8302014-06-10 00:00:00.000 Completed Reed Brewer New 8302014-07-10 00:00:00.000 Completed Reed Brewer New 8302014-07-02 00:00:00.000 Completed Colton Duke New 920I would like to get this:2014-07-10 00:00:00.000 Completed Reed Brewer New 8302014-07-02 00:00:00.000 Completed Colton Duke New 920I have tryed to use Max , but it does not work for me ;x select Max(delivery.deliveryDate), delivery.deliveryStatus, patient.userName, patient.userStatus, delivery.accountid from clx_delivery as delivery left join clx_patienttherapy as patient on delivery.accountid = patient.accountidwhere deliveryStatus = 'Completed' and userStatus = 'New'group by delivery.accountid, delivery.deliveryDate, delivery.deliveryStatus, patient.userName, patient.userStatus, delivery.accountid