Your question is Clean and Reconcile Bank Exports. Start with the requirements and the two tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given a raw export of transactional data with mismatched formatting, use formulas to clean, align, and reconcile the dataset against a bank settlement report at Rippling.
Write a PostgreSQL query using raw_transactions and bank_settlements. Normalize references, safely parse dates and amounts, match records, and classify reconciliation differences.
| Column | Type | Description |
|---|---|---|
| raw_transaction_idPK | INT | Identifier from the raw transaction export |
| raw_date | VARCHAR(20) | Transaction date in inconsistent text formats |
| raw_amount | VARCHAR(30) | Transaction amount containing currency symbols or inconsistent formatting |
| raw_reference | VARCHAR(40) | Raw transaction reference |
| Column | Type | Description |
|---|---|---|
| settlement_idPK | VARCHAR(20) | Bank settlement identifier |
| settlement_date | DATE | Date reported by the bank |
| settlement_amount | NUMERIC(14,2) | Settled monetary amount |
| reference | VARCHAR(40) | Reference from the bank settlement report |