Data warehouse
A data warehouse is a central database that collects data from many operational systems, cleans and integrates it, and keeps its history so that it can be used for reporting and analysis. Data marts are smaller subsets of the warehouse built for one subject or department, such as finance or risk.
What it is
A data warehouse is a central database that stores integrated, historical data from many operational systems, organised for reporting and analysis rather than for processing transactions. The textbook definition gives it four properties: it is subject-oriented, integrated, time-variant and non-volatile.
- Subject-oriented: data is grouped by business subject, such as customer, account or exposure, not by the system that produced it.
- Integrated: names, codes and formats are made consistent across sources.
- Time-variant: each record carries a time, so past positions remain available.
- Non-volatile: loaded data is added to and not overwritten.
The parts of a typical warehouse are the source systems, the extract, transform and load process (ETL) that moves and cleans the data, the storage layer with a defined data model, and the data marts. A data mart is a subset prepared for one subject or department, such as finance or credit risk. A metadata layer records what each field means and where it came from.
Why it matters
Operational systems hold the data each process needs, in the format that process needs. A report that spans several of them needs one customer, one product code and one date convention. The warehouse provides that single, tested version, so that two teams asking the same question get the same answer.
Without it, each report is built by its own extraction and manual adjustments, which are slow and hard to reconcile or audit.
Worked example
Illustrative numbers. A bank holds loans in two systems. System A identifies the customer by an internal number, system B by a tax code.
- The ETL process maps both identifiers to one customer key.
- A customer has a loan of 40 in system A and a loan of 60 in system B, both in thousand euro.
- The warehouse stores two loan records under one customer key and shows a total exposure of 40 + 60 = 100 thousand euro.
- At month end the warehouse stores a snapshot. A report for the previous month reads the stored snapshot and returns the same figures even if a loan has since been repaid.
Without the mapping, the reports would show two customers with 40 and 60 and miss the combined exposure.
Who uses it
- Data analysts query the warehouse with SQL to answer business questions from consistent data.
- BI analysts build dashboards and reports on top of the warehouse and its data marts.
- Regulatory reporting analysts take supervisory report figures from it and reconcile them with the ledger.
- Data governance analysts define owners, definitions and quality rules for the data it holds.
- Business controllers use its history to explain variances between periods.
Common confusions
- A data warehouse is not an operational database. It is read mostly for analysis, and loaded in batches or at set intervals.
- A data warehouse differs from a data lake. A warehouse stores structured, modelled data; a lake stores raw data of any form, with the structure applied when it is read.
- A data mart is not a separate source of truth. It is derived from the warehouse and loses consistency if built from other sources.
- A warehouse does not make data correct. Errors in source systems are carried through unless quality rules catch them.