Global DynaDatum Bank £170M Forensic Investigation
Run real SQL queries on each checkpoint below to uncover the 6 root-cause data bugs behind the £170M accounting variance. Each verified query recovers part of the missing balance until the ledger reaches £0.00 drift.
Customers exist under dual identities across CRM and Core Banking, causing duplicate balance sums.
Your Detective Mission: Find the matching customer pairs where lower(trim(c.full_name)) = lower(trim(m.full_name)) AND c.dob = m.dob. Return c.crm_id, m.cob_id, and m.full_name ordered by c.crm_id.
EUR and USD balances were added directly to GBP without converting using end-of-month spot FX rates.
Your Detective Mission: Join silver.core_balances b to silver.fx_rates fx on b.currency = fx.currency AND b.balance_date = fx.rate_date. Return b.account_id, ROUND(b.ledger_balance * fx.to_gbp_rate, 2) AS gbp_balance ordered by b.account_id.
Cash ISA accounts were double-counted because the product catalog join omitted the valid-time date window.
Your Detective Mission: Join silver.core_balances b to silver.product_catalog p on b.product_code = p.product_code AND b.balance_date BETWEEN p.effective_from AND p.effective_to. Return b.account_id, p.category_l1, b.ledger_balance.
A 14-hour delayed interchange batch arrived after the 5:00 PM ledger cutoff, leaving unsettled batches unflagged.
Your Detective Mission: Query bronze.payment_interchange to find all batches where settlement_delay_hours > 4. Return batch_id, settlement_delay_hours, and amount_gbp ordered by batch_id.
Credit applications exposed passport numbers in non-Restricted tiers due to missing security classifications.
Your Detective Mission: Query gov.credit_classification to find columns where security_tier IS NULL OR security_tier NOT IN ('Public', 'Internal', 'Restricted'). Return column_name and security_tier ordered by column_name.
Verify final deposit totals per currency on 2026-09-30 without duplicate account snapshots.
Your Detective Mission: Query silver.core_balances for balance_date = '2026-09-30' and return currency, COUNT(DISTINCT account_id) AS total_accounts, and ROUND(SUM(ledger_balance), 2) AS total_deposits grouped by currency and ordered by currency.