I have a table employees in my database with corrupt entries.
I tried to delete them excuting:
delete from employees
where id_boss= (
select id_worker from employees e
where surname= 'XXX')
AND basic_wage>1500
but I get the next error:
#1093 - You can't specify target table 'pracownicy' for update in FROM clause
How can I overcome this?