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: Thursday, July 24, 2014 12:29 PM
Points: 54, Visits: 101
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


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 4:26 PM
Points: 3,535, Visits: 7,620
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 @ 3:07 PM
Points: 42,812, Visits: 35,931
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 2008, 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


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 8:22 AM
Points: 874, Visits: 2,793
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