Skip to content

Digital bank

Customers, their accounts and every transaction, January to June 2025.

Query it in the playground

customers

One row per customer. Key: customer_id. 70 rows in the larger version, 30 in the smaller.

customer_idintUnique id.
full_nametextName.
joined_ondateDay they became a customer.
segmenttextretail, premium or business.

accounts

One row per account. A customer can have several. Key: account_id. 126 rows in the larger version, 56 in the smaller.

account_idintUnique id.
customer_idintOwner.
account_typetextchecking, savings or credit.
opened_ondateOpening day.
closed_ondate, nullableClosing day. NULL while open.

transactions

One row per posted transaction. Positive amounts are money in, negative are money out. Key: txn_id. 9,906 rows in the larger version, 4,235 in the smaller.

txn_idbigintUnique id.
account_idintThe account.
posted_attimestampWhen it posted (UTC).
amountnumeric(12,2)Signed amount, USD.
categorytextsalary, rent, groceries, dining, travel, transfer, fees or refund.
merchanttext, nullableMerchant name. NULL for salary, transfers and fees.

Questions on this database