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 |