Jurijus Zaksas
Искусственный Интеллект
(445791)
3 года назад
delete from employees where employee_id in (
SELECT DISTINCT E.employee_id
FROM project P
INNER JOIN works_on W
ON W.project_id_fk=P.project_id
INNER JOIN employees E
ON E.employee_id=W.employee_id_fk
WHERE P.budget = (SELECT min(budget) FROM project)
)
Ночные крыльяУченик (106)
3 года назад
там вот такую штуку выдает:
You can't specify target table 'employees' for update in FROM clause