I am trying to DELETE multiple entries using the following query:
First, I find the entries I want to delete using this query:
SELECT guid FROM account GROUP BY guid,type HAVING count(type) > 1);
Then I add this query to the DELETE statement:
DELETE FROM account WHERE guid IN (SELECT guid FROM account GROUP BY guid,type HAVING count(type) > 1);
But I get this error:
You cannot specify the "account" of the target table to update in the FROM clause
source share