Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

Excluindo linhas duplicadas do oracle

delete from employee a
where employee_id in (
   select employee_id 
   from employee b
   where b.department_id > a.department_id )