Skip to content

Instantly share code, notes, and snippets.

@johngibb
Created May 6, 2011 23:49
Show Gist options
  • Save johngibb/960024 to your computer and use it in GitHub Desktop.
Save johngibb/960024 to your computer and use it in GitHub Desktop.
Explain Outer Apply
-- 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