Suppose you have a table employee
, with the following columns:
employee (first_name, last_name, start_date)
In order to delete the rows with a duplicate first_name
column:
delete
from employee using employee,
employee e1
where employee.id > e1.id
and employee.first_name = e1.first_name