NOT INwill not match any rows when the subquery returns even one null.NOT EXISTScan handle the NULL value.NOT INis simpler and tests for the presence of an element in a set.NOT EXISTScan handle more complicated queries, including grouping, results with multiple conditions, and can take advantage of indexes.NOT EXISTSis significantly faster thanNOT IN, especially when the subquery result is very large.NOT INperforms nested full table scans.NOT EXISTScan use an index within the sub-query.
No comments:
Post a Comment