Delete from employee_salary
where emp_id in(
select emp_id from
employee_salary
group by emp_id,project,salary
having count(*)>1
);
ERROR 1093 (HY000): You can't specify target table 'employee_salary' for update in FROM clause
How to solve this problem and why this query is nor running?