Skip to main content
All Problems
hard0% acceptance

Executive Financial Dashboard Query

Build an executive dashboard row per customer showing: full_name, total_accounts, total_balance, total_loans, total_principal, total_cards, and a customer_segment classified as 'Premium' if total_balance > 50000, 'Standard' if > 10000, else 'Basic'. Use subqueries or left joins to gather all metrics. Include all customers. Sort by total_balance descending. Limit to 25.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute