Hi,
Is this the most efficient way to delete from DeletedProducts
table where there are not references found in the ProductFileInfo
table?
Sample:
DELETE FROM DeletedProducts
WHERE ProductId NOT IN SELECT DISTINCT ProductID FROM ProductFileInfo
Or is NOT EXIST
a better way to perform this.
Note: ProductFileInfo
has over 20 Million records in it.
SQL Server 2005 Standard is what I am using.
Thanks