--------------------- ID Name --------------------- 1 A 2 B 3 C 4 D
DELETE FROM t1 WHERE ID NOT IN (SELECT MAX(ID) FROM t1 GROUP BY [name])
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)