Return
full_name (the customer's name)home_country (the customer's country of residence)total_spend (the sum of all transaction amounts for the customer)total_spend from highest to lowest.Expected output
| full_name | home_country | total_spend |
|---|---|---|
| Arjun Patel | IN | 6520.04 |
| Olivia Brooks | US | 3893.14 |
| Wei Chen | SG | 3481.99 |
First 3 of 6 rows your query should return. Your column aliases don't need to match.