For each customer with orders, return name, total_spend and later_spend: spend on orders placed in any month after their first order's month (0 if none). Sort by later_spend descending, then name.
Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.
Start 7-day free trial