Skip to content

Instantly share code, notes, and snippets.

@shaneis
Created December 7, 2017 14:37
Show Gist options
  • Save shaneis/57a4aedd787d91d1c2f2063cf24d6f04 to your computer and use it in GitHub Desktop.
Save shaneis/57a4aedd787d91d1c2f2063cf24d6f04 to your computer and use it in GitHub Desktop.
-- Itzik Join
SELECT t1.Col1,
t2.Col1,
t3.Col1
FROM dbo.table1 AS t1
LEFT JOIN (
dbo.table2 AS t2
INNER JOIN dbo.table3 AS t3 ON t3.Col1 = t2.Col1
) ON t2.Col1 = t1.Col1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment