Merge orders with customers and find the total spending per customer for completed orders only. Sort by total spending descending.
orders: order_id, customer_id, amount, statuscustomers: customer_id, name, cityReady to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.