SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Takes Query Plan Analysis and Performance Monitoring to a New Level

What is a Nested Loop Join Operator?

Did you know that there are three main types of joins in SQL, all of which are possible by just specifying JOIN in your query? The nested loop join is very common in online transaction processing (OLTP) and is definitely one that you need to know to really decipher execution plans.

Duration:
1 mins 16 secs
Skill Level:
100
Rating:
3.89 out of 5
Publish Date:
September 09, 2008
What is a Nested Loop Join Operator? You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Grant Fritchey
I'm currently working for FM Global, an industry leading engineering & insurance company, as a DBA. I've done development of large scale applications in languages such as VB, C# and Java. I've worked in SQL Server from the hoary days of 6.0. My nickname at work is the "The Scary DBA." I even have an official name plate with it. I wear it proudly. I was awarded a Microsoft MVP in April of '09.

References

There are no downloads or recommended reading links for this video

Comments
Jennifer on 9/24/2008
This was a great video. I would have liked just a little more information or explanation about the inefficient nested interation.

Grant Fritchey on 9/29/2008
Loops are'nt necessarily inefficient. In some cases they are the best operator for the problem.

Nira G on 2/5/2009
I enjoy watching the video. But, please, speak more slowly and pronounce clearly the words, as I am not a native English speaker. Thank you, Nira G

Pat on 2/5/2009
Should be a little longer; I could use a suggestion of why would i want to use it. Thanks Grant Pat in NH

jonathan makcen on 2/5/2009
this video didn't do anything to explain what set up the nested loop.

Don Tulecki on 2/5/2009
It was short, laser specific, and gave good information, although it left me wanting a little more a blurb or two on perhaps other options when it is not the best thing due to larger returns.

Richard Cook on 2/5/2009
This is the first time I've come across this series so I do not know what tools are being used and what the overall context of this unit is about. Particularly I want to know what IDE is being shown or where I can go for additional info. Thanks.

Jonathan Winer on 2/5/2009
It would have been nice to hear an opinion around at what point does the dataset become to large for this to become inefficient.

R James Reichard on 2/5/2009
Could have shown more of the code in the video. This way a person can follow along with an open query to pactice.

Jane Frounfelker on 2/5/2009
What alternative is there when working with a large number of records or a non-indexed field?

Grant Fritchey on 2/5/2009
To everyone who thinks the video is too short... Yep. It's short. Sorry. That was the intent. A focused description of a single execution plan operator. It doesn't get into all the alternatives because it just wasn't supposed to. I'm working on some longer videos that will get into more extensive troubleshooting using execution plans.

Grant Fritchey on 2/5/2009
To Richard Cook: This is the SQL Server Management Studio IDE. It's the management tool that comes with SQL Server 2008.

Grant Fritchey on 2/5/2009
To Jonathan Winer: It really depends on the data involved. Good statistics on very large data sets could result in loop joins across hundreds or even thousands of rows.

Grant Fritchey on 2/5/2009
To Jane Founfelker: There are two other basic join operators, and videos, Hash Match and Merge.

Brian on 2/5/2009
Well, you have defined something without explaining how the situation was created, or any alternatives. At the end of the clip, people who know what you are talking about will say "heh" and those who don't will say "huh?"

Marco Francisco on 2/7/2009
Excellent...Give us more about this kind. Thanks.

kin on 2/9/2009
that's great. can you have a series on execution plan from newbie to guru level, please?

kin on 2/9/2009
Don Tulecki, basically it is the difference between: 1) 10 * 1000 vs. 2) 1000 * 1000 the 1) is the small hash with the large index. the 2) is the large loop in a large loop.

Chris Helm on 2/13/2009
good, but could have been longer with more examples

datamama on 4/27/2009
would have been better to also show one that was inefficient.

Joe on 7/10/2009
It was a very clear headed representation of this structure.Which is better hash or nested

Deborah Land on 3/16/2010
Did a good job displaying the nested loop, but it didn't really explain to me what it was or how we got to it.

7F718A6344 on 6/18/2010
Did explain what a nested loop join is.

5124CFD2E1 on 10/10/2011
Like to see how to resove if the outer table contained a larger set of rows.

Steven Robinson on 12/30/2011
Very useful information



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions