Data Warehouse

What is a Data Warehouse?

A data warehouse is an analytical database that combines data from many source systems, cleans it into a consistent structure and keeps its history, so analysts and BI tools can query across sources without touching production systems.

Updated November 2026 · 3 min read


A data warehouse is a central database built for analysis rather than for running day-to-day transactions. It pulls data from many source systems, such as the product database, billing, CRM, support tools and marketing platforms, cleans and reshapes it into a consistent structure, and keeps its history so that people can answer questions across sources and over time. Analysts, BI dashboards and data scientists query the warehouse instead of hitting production systems directly.

The idea is usually traced to Bill Inmon, who defined a data warehouse as a subject-oriented, integrated, time-variant and non-volatile collection of data that supports management decisions. Ralph Kimball later popularized dimensional modeling, the star-schema approach most warehouses still use. Today most new warehouses run in the cloud on services such as Snowflake, Google BigQuery, Amazon Redshift, Databricks or Microsoft Fabric (which Microsoft positions as the successor to Azure Synapse), which separate storage from compute and charge for what you use.

Data warehouse vs. database vs. data lake

AspectOperational databaseData warehouseData lake
Main jobRun the application (OLTP)Analysis and reporting (OLAP)Store raw data of any type cheaply
Data shapeNormalized tables for fast writesModeled tables (often star schemas) for fast readsFiles in their original format
HistoryUsually current state onlyFull history, time-stampedFull history, often unprocessed
Typical usersThe application itselfAnalysts, BI tools, finance, product teamsData engineers, data scientists
SchemaFixed by the applicationDefined before or during loadingApplied when data is read

Many companies now run a "lakehouse" that combines lake storage with warehouse-style tables and SQL. The labels matter less than the principle: analytical questions should run against a modeled copy of the data, not the production database. See data lake for the comparison in more depth.

How does a data warehouse work?

  1. Extract. Connectors pull data from source systems on a schedule or as a stream.
  2. Load. Raw data lands in staging tables. Modern stacks usually load first and transform inside the warehouse (ELT) rather than transforming before loading (ETL).
  3. Transform. SQL models clean, deduplicate, join and rename data into business entities such as customers, accounts, subscriptions and events.
  4. Model. Fact tables hold measurable events (orders, logins, invoices) and dimension tables hold the context used to slice them (customer, plan, date, region).
  5. Serve. BI tools, notebooks, reverse-ETL jobs and product analytics tools read from the modeled layer.

Why product and operations teams care

Product questions rarely live in one system. "Do customers who adopt feature X renew at a higher rate?" needs product usage events, subscription data from billing and account attributes from the CRM. A warehouse is where those can be joined. It also becomes the agreed source for metrics such as MRR, active users and retention, so that finance, product and sales stop arguing over whose numbers are right. A warehouse sits underneath most business intelligence and much of the modern product analytics stack.

Data warehouse example

Consider a hypothetical B2B SaaS company with 1,200 paying accounts. Product usage lives in an analytics tool, subscriptions in the billing system and account owners in the CRM. Leadership wants to know whether accounts that use the reporting module retain better.

The data team loads all three sources into the warehouse and builds an account-level table. Of the 1,200 accounts, 480 used reporting in the last 90 days and 720 did not. Over the following year, 444 of the 480 reporting users renewed (92.5 percent) compared with 576 of the 720 non-users (80 percent). Overall renewal is 1,020 of 1,200, or 85 percent. The gap does not prove reporting causes retention, since larger accounts may both use reporting and renew more, but the warehouse makes it possible to control for account size in the next analysis. Without it, the question would have required three exports and a spreadsheet that nobody could reproduce.

Common pitfalls

  • Loading everything and modeling nothing. A warehouse full of raw tables that only one engineer understands is not much better than the source systems. The value is in the modeled, documented layer.
  • Undefined metrics. If "active user" is defined three different ways in three dashboards, the warehouse just spreads the confusion faster. Define core metrics once, in code, and reuse them.
  • Ignoring data quality. Pipelines break silently. Add tests for freshness, row counts, nulls and uniqueness on key tables.
  • Uncontrolled cost. Pay-per-query pricing means a badly written dashboard refreshing every few minutes can cost real money. Monitor the heaviest queries.
  • No ownership. Every important table needs an owner who answers questions and approves changes, supported by data governance and a data catalog.

A data warehouse is one part of a wider data strategy. It connects closely to data architecture, which decides how data flows between systems, and to data-driven decision making, which is what the warehouse exists to support.

Frequently asked questions

What is the difference between a data warehouse and a data lake?

A data warehouse stores cleaned, modeled tables, often star schemas, built for fast analytical queries, with the schema defined before or during loading. A data lake stores raw data of any type cheaply in its original format and applies a schema only when data is read. Many companies now combine the two in a lakehouse with warehouse-style tables and SQL.

What is the difference between ETL and ELT in a data warehouse?

In ETL, data is transformed before it is loaded into the data warehouse. In ELT, raw data lands in staging tables first and is then cleaned, deduplicated, joined and modeled inside the warehouse, usually with SQL models. Most modern stacks follow the ELT pattern, loading first and transforming inside the warehouse rather than in a separate step beforehand.

What are fact and dimension tables in a data warehouse?

Fact tables record measurable events, such as orders, logins or invoices. Dimension tables hold the context used to slice those events, such as customer, plan, date or region. Joined in a star schema, the dimensional modeling approach popularized by Ralph Kimball, they let analysts ask questions like revenue by plan and region over time without touching production systems.