Skip to content

Instantly share code, notes, and snippets.

@vrySantosh
Created July 13, 2020 08:29
Show Gist options
  • Save vrySantosh/6b7d6b2c2bb68ec07b30cf64ad7ee8a4 to your computer and use it in GitHub Desktop.
Save vrySantosh/6b7d6b2c2bb68ec07b30cf64ad7ee8a4 to your computer and use it in GitHub Desktop.
SELECT o.OrderID,
o.CustomerID,
o.ProductID,
o.Status,
c.Name as CName,
p.Name as PName,
p.PRICE
FROM Orders o
INNER JOIN Customers c
on o.CustomerID = c.CustomerID
INNER JOIN Products p
on o.ProductID = p.ProductID
@vrySantosh
Copy link
Author

SQL Server Query for Inner Join 3 Tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment