Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Which one of the below operator takes the most time for execution? Expand / Collapse
Author
Message
Posted Wednesday, June 19, 2013 3:36 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, February 20, 2015 4:39 AM
Points: 58, Visits: 125
Which operator takes the most time for execution?


1) IN
2) NOT IN
3) AND
4) ALL
?
Post #1465410
Posted Wednesday, June 19, 2013 3:53 PM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 9:42 PM
Points: 4,835, Visits: 11,213
Is not easy to answer as they're not equivalent and can't be measured against each other.


Luis C.
Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1465416
Posted Wednesday, June 19, 2013 3:54 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 4:53 AM
Points: 42,212, Visits: 38,944
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
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1465417
Posted Friday, June 21, 2013 4:58 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 2:12 AM
Points: 1,066, Visits: 3,225
kiran.vaichalkar (6/19/2013)
Which operator takes the most time for execution?


1) IN
2) NOT IN
3) AND
4) ALL
?

Your question makes this much sense:

I have a Sharp Calculator, which operator takes the most time for execution?

1) +
2) -
3) /
4) *
?




The SQL Guy @ blogspot

@SeanPearceSQL

About Me
Post #1466130
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse