Find customers whose total spending exceeds the average total spending across all customers. Return customer_id, total_spending, and the overall average spending. Sort by total_spending descending.
Schema
🔑idINT
🔗customer_idINT
order_dateTEXT
statusTEXT
total_amountREAL
postgresql
Run your query to see results
Press Ctrl + Enter to execute