Case study · Nordvik Sparebank EN NO

raw.transactions

Account-level activity · approximately 2,900,000 rows.

The fact table. Three years (2023-2025) of card payments, transfers, ATM withdrawals, salaries, fees, interest postings, and corrections. By far the largest table in the dataset.

Columns

ColumnTypeDescription
transaction_idPKTEXT26-character ULID-like identifier. Time-prefixed and sortable.
account_idFKBIGINTReferences accounts.account_id.
counterparty_accountTEXT11-digit Norwegian account number for transfers; NULL for card payments and ATM withdrawals.
amountNUMERIC(18,4)Signed transaction amount. Debits are negative, credits are positive.
currencyTEXTTransaction currency. May differ from the account's currency.
booking_dateDATEDate the transaction was posted to the ledger.
value_dateDATEDate the funds cleared.
transaction_typeTEXTOne of card_payment, transfer, atm_withdrawal, salary, fee, interest, reversal.
descriptionTEXTFree-text description. Includes merchant name and location for card payments.
merchant_categoryTEXTMerchant category (e.g. groceries, fuel, restaurant). NULL for non-card transactions.
statusTEXTsettled or pending.
created_atTIMESTAMPWhen the transaction record was created in the source system.

Sample rows

transaction_idaccount_idcounterparty_accountamountcurrencybooking_datevalue_datetransaction_typedescriptionmerchant_categorystatuscreated_at
01HQRX38A2K1F4S6Z9TE3M0X8B1NULL-289.0000NOK2024-03-122024-03-12card_paymentREMA 1000 OSLOgroceriessettled2024-03-12 18:42:11
01HQRX38A2K1F4S6Z9TE3M0X8C174218309614-12500.0000NOK2024-03-152024-03-15transferHusleieNULLsettled2024-03-15 09:01:33
01HQRX38A2K1F4S6Z9TE3M0X8D1NULL42150.0000NOK2024-03-252024-03-25salaryLønnNULLsettled2024-03-25 03:14:50
01HQRY12B7L4F8T0A8WM5K2C0H3NULL-89.0000EUR2024-04-022024-04-02card_paymentAMAZON.DE ONLINEonlinesettled2024-04-02 22:51:09
01HQRY12B7L4F8T0A8WM5K2C0J3NULL-89.0000EUR2024-04-022024-04-02card_paymentAMAZON.DE ONLINEonlinepending2024-04-02 22:51:31

Notes