Skip to content

Instantly share code, notes, and snippets.

@sqlparser
Created March 25, 2014 09:20
Show Gist options
  • Save sqlparser/9757963 to your computer and use it in GitHub Desktop.
Save sqlparser/9757963 to your computer and use it in GitHub Desktop.
select from join demo code
SELECT p.Name, sod.SalesOrderID
FROM Production.Product AS p
LEFT OUTER JOIN Sales.SalesOrderDetail AS sod
ON p.ProductID = sod.ProductID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment