delete from students where name in(select name from students group by nam e having count(name)>1) and student_id not in(select min(student_id) from studen ts group by name having count(name)>1);