Skip to main content
All Problems
medium0% acceptance

High-Spending Customers

Identify VIP customers whose total spending exceeds the average customer's total spending. Return the customer's full name and their total spent. Use a subquery to compute the average total spending per customer.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute