Menu▾
Touch 'n GoBasic

Touch 'n Go — Wallet Topup Reconciliation

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

▸tng_topups
topup_idSERIAL
user_idINT
amountINT
topped_up_atTIMESTAMP
▸tng_ledger
ledger_idSERIAL
user_idINT
entry_typeTEXT
amountINT
posted_atTIMESTAMP

4 steps

  1. 1Total topped-up amount per account
  2. 2Total credited amount per account
  3. 3Compute each account's topup-vs-ledger discrepancy
  4. 4Name the account finance should open a ticket on

Basic

This is a Basic take-home

Multi-step case rounds — several questions on one shared dataset — unlock with a Basic plan.

See Basic plans

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.