Sign in
Craig Freedman's SQL Server Blog
A discussion of query processing, query execution, and query plans in SQL Server.
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
Aggregation
Common Table Expressions
Conversions
Hints
I/O
Isolation Levels
Joins
Parallelism
Partitioned Tables
Pivot and Unpivot
Ranking Functions
Rollup and Cube
Scans and Seeks
Subqueries
Top
Updates
Archive
Archives
January 2010
(1)
July 2009
(1)
June 2009
(1)
April 2009
(1)
March 2009
(2)
February 2009
(1)
October 2008
(2)
September 2008
(1)
August 2008
(2)
July 2008
(1)
June 2008
(2)
May 2008
(2)
April 2008
(1)
March 2008
(2)
February 2008
(1)
January 2008
(2)
November 2007
(1)
October 2007
(3)
September 2007
(3)
August 2007
(3)
July 2007
(4)
June 2007
(2)
May 2007
(5)
April 2007
(2)
December 2006
(1)
November 2006
(4)
October 2006
(4)
September 2006
(4)
August 2006
(5)
July 2006
(4)
June 2006
(6)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Craig Freedman's SQL Server Blog
Subqueries: ANDs and ORs
Posted
over 7 years ago
by
Craig Freedman
5
Comments
In my “Introduction to Joins” post , I gave an example of how we can use a semi-join to evaluate an EXISTS subquery. Just to recap, here is another example: create table T1 ( a int , b int ) create table T2 ( a int ) create table T3 ( a int ...
Craig Freedman's SQL Server Blog
Subqueries in CASE Expressions
Posted
over 7 years ago
by
Craig Freedman
5
Comments
In this post, I’m going to take a look at how SQL Server handles subqueries in CASE expressions. I’ll also introduce some more exotic join functionality in the process. Scalar expressions For simple CASE expressions with no subqueries, we can just...
Craig Freedman's SQL Server Blog
Summary of Join Properties
Posted
over 7 years ago
by
Craig Freedman
7
Comments
The following table summarizes the characteristics of the three physical join operators which I described in my three prior posts. Nested Loops Join Merge Join Hash Join Best for … Relatively small inputs...
Craig Freedman's SQL Server Blog
Hash Join
Posted
over 7 years ago
by
Craig Freedman
8
Comments
When it comes to physical join operators, hash join does the heavy lifting. While nested loops join works well with relatively small data sets and merge join helps with moderately sized data sets, hash join excels at performing the largest joins. Hash...
Craig Freedman's SQL Server Blog
Merge Join
Posted
over 7 years ago
by
Craig Freedman
14
Comments
In this post, I’ll describe the second physical join operator: merge join (MJ). Unlike the nested loops join which supports any join predicate, the merge join requires at least one equijoin predicate. Moreover, the inputs to the merge join must be sorted...
Page 1 of 1 (5 items)