SELECT T1.ID, T1.Name, T1.Message FROM YourTable AS T1 INNER JOIN ( SELECT MAX(ID),Name FROM YourTable GROUP BY Name ) AS T2 ON T1.ID=T2.ID
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)