For each customer who has ordered, return name and total_spent across delivered orders only. Customers with no delivered orders are left out.
12 rows with columns name, total_spent — first 3 shown:
| # | ||
|---|---|---|
| 1 | Aarav Shah | 15138 |
| 2 | Diya Patel | 2597 |
| 3 | Isha Verma | 1894 |
Run your code to see the output here.