SQL - LEFT and RIGHT JOIN
Consider tables:
Products:
ProductID | Name
1 | Pen
2 | Pencil
Sales:
SaleID | ProductID
101 | 1
102 | 3
What is the output of:
Products:
ProductID | Name
1 | Pen
2 | Pencil
Sales:
SaleID | ProductID
101 | 1
102 | 3
What is the output of:
SELECT Products.Name, Sales.SaleID FROM Products RIGHT JOIN Sales ON Products.ProductID = Sales.ProductID;?