category, based on the total value of their purchases (quantity multiplied by unit price).Return
category: the product categorycustomer_name: the name of the top-spending customer in that categorytotal_spent: the total amount spent by that customer in the categorycategory (A-Z), then by customer_name (A-Z).Expected output
| category | customer_name | total_spent |
|---|---|---|
| Books | Acme Co | 5 |
| Digital | Acme Co | 49 |
| Digital | Delta | 49 |
First 3 of 5 rows your query should return. Your column aliases don't need to match.