Customers Who Bought Toys
EasyDescription
Show customer_id and full_name of the customers who bought at least one Toys
product (category_id 8), each customer once.
End your query with ORDER BY customer_id.
Tables
| customers |
|---|
| customer_id (PK) |
| full_name |
| orders |
|---|
| order_id (PK) |
| customer_id (FK) |
| order_items |
|---|
| item_id (PK) |
| order_id (FK) |
| product_id (FK) |
| products |
|---|
| product_id (PK) |
| category_id (FK) |