About the “High Net Worth Liquidity Segmentation” SQL Problem
Business Scenario
Private wealth management routes clients to dedicated advisors based on total aggregated liquidity across checking, savings, and investment accounts.
Expected Output & Criteria
Summary of client count and total assets grouped by wealth tier.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE financial_accounts (
account_id INT PRIMARY KEY,
user_id INT NOT NULL,
account_type VARCHAR(30) NOT NULL,
balance_usd NUMERIC(12, 2) NOT NULL
);Target SQL Clauses & Operators
WITHGROUP BYCASE
Want more CTEs practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.