In this example we have a table called employes with first name last name
Table
emp_id f_name l_name
1 mary mcluskey
2 mary mcluskey
3 james fredrick
4 ray blume
5 ray blume
First identify the dups
SELECT f_name,l_name FROM employees
GROUP BY f_name,l_name
HAVING COUNT(*) > 1
Results
f_name l_name
ray blume
mary mcluskey
Delete dups
DELETE FROM employees WHERE emp_id IN
(SELECT MAX(emp_id) FROM employees
GROUP BY f_name,l_name
HAVING COUNT(*) > 1)
Results
emp_i d f_name l_name
1 mary mcluskey
3 james fredrick
4 ray blume
Note you may have to use while exists when you have 3 dups of same as this only deletes max id where a name is repeated