SQL - Advanced Joins
You have two tables:
ProductID | Name
1 | Pen
2 | Pencil
3 | Eraser
ProductID | Quantity
2 | 100
3 | 50
4 | 10
You want a query to list all products and sales quantities, including products with no sales and sales for unknown products.
Which query correctly achieves this?
Products:ProductID | Name
1 | Pen
2 | Pencil
3 | Eraser
Sales:ProductID | Quantity
2 | 100
3 | 50
4 | 10
You want a query to list all products and sales quantities, including products with no sales and sales for unknown products.
Which query correctly achieves this?
