Rank all customers by their total spending using DENSE_RANK (no gaps in rankings). Return customer name, total spent, and their spending rank. Show only the top 10 spenders.
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