Retail Banking Operations Path · Mission 23 of 30Expert

FDIC insurance bucket stress test

Conditional bucketing with multi-condition CASE + FDIC limit logic

The Brief

Jordan KimTreasurerretail-ops

FRB stress prep. Bucket every Deposit account by FDIC insurance status using the latest balance snapshot per account. Buckets: `insured_individual` (Individual ownership, balance ≤ $250K), `uninsured_individual` (Individual, balance > $250K), `insured_joint` (Joint, balance ≤ $500K), `uninsured_joint` (Joint, balance > $500K). Three columns: `bucket`, `n_accounts`, `balance` (rounded 2). Sort by bucket ascending.

You'll practice

Multi-condition CASEFDIC limit logic

Tables & columns available

retail_balance_dailyfact8 columns
ColumnTypeKey
snapshot_idINTPK
account_idINTFK → retail_accounts
snapshot_dateTEXT
ledger_balanceREAL
available_balanceREAL
interest_rateREAL
days_overdrawnINT
delinquency_statusTEXT
retail_accountsdim13 columns
ColumnTypeKey
account_idINTPK
customer_idINTFK → retail_customers
product_idINTFK → retail_products
branch_idINTFK → retail_branches
open_dateTEXT
close_dateTEXT
statusTEXT
ownership_typeTEXT
interest_rateREAL
original_balanceREAL
credit_limitREAL
fico_at_origINT
maturity_dateTEXT
retail_productsdim10 columns
ColumnTypeKey
product_idINTPK
product_codeTEXT
product_nameTEXT
categoryTEXT
subcategoryTEXT
default_aprREAL
default_apyREAL
monthly_feeREAL
nsf_feeREAL
od_feeREAL

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Latest snapshot per account using the ROW_NUMBER pattern — keep the most recent. Filter to the Deposit category; loans aren't in FDIC scope.

Hint 2

The bucket CASE has multiple branches. Order matters: check Joint+over-limit BEFORE the plain Joint branch, otherwise every joint account lands in the insured bucket regardless of balance.

Hint 3

GROUP BY the bucket label, COUNT for accounts, SUM the balance for dollar exposure, ROUND to 2.