Here is the task: delete all duplicates by field from the table and keep the one with say max(ID):
And it performs painfully slow even though i have indexes
If i am using temp table to insert result of grouping into , the code executes almost instantly.
Is it just Access thing ?
Thank you!
Code:
DELETE *
FROM tbl_1
WHERE ID not IN
(SELECT Max(tbl_1.ID) AS MaxOfID
FROM tbl_1
GROUP BY tbl_1.Fields);
And it performs painfully slow even though i have indexes
If i am using temp table to insert result of grouping into , the code executes almost instantly.
Is it just Access thing ?
Thank you!