The right semi join works like the left semi join, it just switches the role of the two sides. A Right Semi Join returns only rows from the right side base on the existence of matching rows on the left.
The Left Semi Join is a half join: It only includes rows from the left side in the results. A typical example for a left semi join query is a statement containing the EXEISTS keyword. However, this does not always result in an execution plan with a Left Semi Join operator.
This is an advanced article showing how to use the “0-1-some” heuristic to select the right test cases when unit testing a join query. The example will approach the task following Test Driven Design.
A self-join is not something that is provided by a special join command. It’s just a term for the pretty mundane idea of joining a table to itself. But rest assured – there is more behind it… [more…]
This is day nine of the A Join A Day series and we are going to look at the outer apply statement. We will discover the differences to the cross apply and the similarities to the left outer join. Read on to get all the details.