Sales Volume by Product
For each product return the total quantity sold. Return product_id and total_quantity.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| product_id | total_quantity |
|---|---|
| 3 | 10 |
| 4 | 20 |
| 2 | 20 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in