Finance flagged a wallet reconciliation gap: the payment gateway's topup log and the wallet's own ledger don't always agree. You have two tables — confirmed topups and the wallet ledger (which mixes credits AND debits in one table) — and no pre-built reconciliation view. Four sequential steps: total each side, join them into a discrepancy, then name the single account with the largest gap.
Schema
| topup_id | SERIAL |
| user_id | INT |
| amount | INT |
| topped_up_at | TIMESTAMP |
| ledger_id | SERIAL |
| user_id | INT |
| entry_type | TEXT |
| amount | INT |
| posted_at | TIMESTAMP |
4 steps
Basic
Multi-step case rounds — several questions on one shared dataset — unlock with a Basic plan.
RM 25/mo · cancel anytime
Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.