Solved

SQL Question pertaining to JOINS

Posted on 2009-06-27
1
179 Views
Last Modified: 2012-05-07
Is there a maximum amount of Joins allowed per SELECT statement? I have one that will contain numerous Joins, would I be best served to break them all into temp tables and re-join them? What would be my best way to handle this?
0
Comment
Question by:Jeff S
1 Comment
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 500 total points
ID: 24727675

<<s there a maximum amount of Joins allowed per SELECT statement?>>
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21855910.html

<<I have one that will contain numerous Joins, would I be best served to break them all into temp tables and re-join them? >>
It really depends on the structure and the type of joins.  Sometime it is better to use temp tables to avoid blocking sometimes it's not.  Hard to say without knowing both your schema and statement.

<<What would be my best way to handle this?>>
I would suggest you start without using any temp table then test yo see if you have blockings.  If you detect specific blockings or slow performance then you can consider replacing joins by temp tables.  most of the time, if the indexing is well done, temm tables are unecessary but sometime there are no other way.

HTH
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now