Created
May 6, 2011 23:49
-
-
Save johngibb/960024 to your computer and use it in GitHub Desktop.
Explain Outer Apply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- These two statements are 100% identical | |
select * | |
from Table1 t1 | |
left join Table2 t2 | |
on t1.id = t2.id; | |
select * | |
from Table1 t1 | |
outer apply ( | |
select * | |
from Table2 t2 | |
where t2.id = t1.id | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment