Who Bought What in Orders 1 to 5
EasyDescription
For orders 1 to 5, show one row per product in the order: order_id, the customer's
full_name, product_name and quantity.
End your query with ORDER BY order_id, product_name.
Tables
| orders |
|---|
| order_id (PK) |
| customer_id (FK) |
| order_date |
| status |
| total_amount |
| shipping_city |
| customers |
|---|
| customer_id (PK) |
| full_name |
| order_items |
|---|
| item_id (PK) |
| order_id (FK) |
| product_id (FK) |
| quantity |
| unit_price |
| discount_pct |
| products |
|---|
| product_id (PK) |
| product_name |