I am using following query to delete data which are not in another table.
delete from table_1 where tbl_id in
(select tbl_id from table_1 left join table_2
on table_1.tbl_id=table_2.another_tbl_id where table_2.another_tbl_id is null)
Is there any issue in the above query?
It shows You can't specify target table 'table_1' for update in FROM clause.
How to solve this issue?