June 19, 2013 at 3:36 pm
Which operator takes the most time for execution?
1) IN
2) NOT IN
3) AND
4) ALL
?
June 19, 2013 at 3:53 pm
Is not easy to answer as they're not equivalent and can't be measured against each other.
June 19, 2013 at 3:54 pm
No way to answer that. Depends on too many factors including but not limited to row count and indexes.
Question doesn't even make sense, IN and AND are not in the same class, one is part of a predicate, one is a logical operator that combines two predicates
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 21, 2013 at 4:58 am
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply