Created
December 7, 2017 14:20
-
-
Save shaneis/5789e56af0500d53ff144c92037e0c10 to your computer and use it in GitHub Desktop.
simple left joins
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
SELECT t1.Col1, | |
t2.Col1, | |
t3.Col1 | |
FROM dbo.table1 AS t1 | |
LEFT JOIN dbo.table2 AS t2 ON t2.Col1 = t1.Col1 | |
LEFT JOIN dbo.table3 AS t3 ON t3.Col1 = t1.Col1 | |
AND t3.Col1 = t2.Col1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment