the following delete query runs extremely slow that it does not progress past one bar on the progress bar. any ideas on how to correct this issue? perhaps changing the data type or compression of the underlying table? if yes, in what manner should this be done
DELETE *
FROM table_query
WHERE table_query.FDataSource <> 'Q' AND table_query.SoldToFax IN (SELECT table_query.SoldToFax
FROM table_query
WHERE (((table_query.SoldToFax) In (SELECT [SoldToFax] FROM [table_query] As Tmp GROUP BY [SoldToFax] HAVING Count(*)>1 )))
GROUP BY table_query.SoldToFax
ORDER BY table_query.SoldToFax);
DELETE *
FROM table_query
WHERE table_query.FDataSource <> 'Q' AND table_query.SoldToFax IN (SELECT table_query.SoldToFax
FROM table_query
WHERE (((table_query.SoldToFax) In (SELECT [SoldToFax] FROM [table_query] As Tmp GROUP BY [SoldToFax] HAVING Count(*)>1 )))
GROUP BY table_query.SoldToFax
ORDER BY table_query.SoldToFax);