Case study · Nordvik Sparebank EN NO

raw.accounts

Accounts per customer · approximately 19,000 rows.

One row per account. A customer can hold multiple accounts. Identifies the account type, currency, opening branch, and lifecycle dates.

Columns

ColumnTypeDescription
account_idPKBIGINTInternal surrogate.
customer_idFKBIGINTReferences customers.customer_id.
account_numberTEXT11-digit Norwegian account number with a MOD-11 check digit.
ibanTEXTNO-prefixed IBAN. Nullable for legacy accounts.
account_typeTEXTOne of checking, savings, high_yield_savings, credit_card, loan, mortgage.
currencyTEXTISO 4217 currency code. Mostly NOK.
opened_atTIMESTAMPWhen the account was opened.
closed_atTIMESTAMPWhen the account was closed. NULL if open.
product_codeTEXTInternal product code. Examples: CHK-STD, SAV-HY, CC-GOLD, MTG-30Y.
branch_idFKINTEGERReferences branches.branch_id. Account's home branch.

Sample rows

account_idcustomer_idaccount_numberibanaccount_typecurrencyopened_atclosed_atproduct_codebranch_id
1112345678903NO9312345678903checkingNOK2019-04-19 00:00:00NULLCHK-STD14
2123456789014NO4523456789014savingsNOK2019-04-19 00:00:00NULLSAV-STD14
3234567890125NO7634567890125credit_cardNOK2016-09-12 00:00:00NULLCC-GOLD27
4245678901236NO1245678901236mortgageNOK2018-11-04 00:00:00NULLMTG-30Y27
5456789012347NULLcheckingEUR2014-02-22 00:00:002024-11-30 00:00:00CHK-STD41

Notes