Hi,
Could someone please explain the difference between two semantically equivalent SQL statements.
I had a delete using NOT IN that ran for 7 hours and when I ran it using NOT EXISTS it run in 20 minutes! I explained the two statements and the NOT IN used an index and a table scan while the NOT EXISTS used two indexes.
Regards
Mike.
Could someone please explain the difference between two semantically equivalent SQL statements.
I had a delete using NOT IN that ran for 7 hours and when I ran it using NOT EXISTS it run in 20 minutes! I explained the two statements and the NOT IN used an index and a table scan while the NOT EXISTS used two indexes.
Regards
Mike.