Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 which one is faster
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

49 Posts

Posted - 06/27/2013 :  01:08:18  Show Profile  Reply with Quote

i have a requirement to get data from more than one table.
but i am using subqueries to get the data,someone saying write a query using setoperater.

which is one is faster subquery or setoperator query and also provide some performance tips.


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 06/27/2013 :  01:17:45  Show Profile  Reply with Quote
depending on scenario and presence of indexes, joins may also prove to perform better than subqueries.

SQL Server MVP
Go to Top of Page

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 06/27/2013 :  12:35:03  Show Profile  Visit jackv's Homepage  Reply with Quote
write the query and test run it with a suitable workload. You could analyse the execution plan.
Try and apply set theory as efectively as possible, for example avoid looping such as cursors. Some other hints and tips to optimize

Jack Vamvas
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000