Data warehouse design: laptop showing raw data, cleaned tables and a star schema layer
Career Development

Data Warehouse Design: Steps, Approaches, and Best Practices

Data warehouse design is the work of deciding how business data is collected, modeled, stored, and loaded so people can analyze it reliably. A good design answers real business questions quickly, keeps history accurate, and stays easy to change as new data sources arrive.

This guide walks through the main design approaches, the layers most warehouses use, and a step-by-step process you can follow, with a small SQL example and the mistakes to avoid.

Key Points

  • Start from the business questions and processes, not from the source tables.
  • Kimball, Inmon, and Data Vault are the three classic approaches; many modern teams combine ideas from them.
  • Declaring the grain, what one fact table row represents, is the decision that shapes the rest of the model.
  • Plan for history, data quality, and load patterns from the start, because they are expensive to retrofit.

Quick summary: Define the questions, map the sources, pick an approach, declare the grain, model facts and dimensions, plan history and loads, then test with real queries.

Key takeaway: A warehouse is designed around how the business measures itself. Get the business processes and grain right, and the tables follow.

What Is Data Warehouse Design?

A data warehouse is a central store of cleaned, integrated data built for analysis rather than for running day-to-day transactions. Designing one means making a set of connected decisions: which business processes to cover, how to model them, how data moves in from source systems, how history is kept, and how the tables will be queried.

It is different from designing an application database. An application database is normalized for fast inserts and updates of single records. A warehouse is shaped for reading large amounts of data, filtering it, and aggregating it across time. If you are still deciding whether you need a warehouse at all, our comparison of data warehouses and data lakes covers that choice.

The Main Data Warehouse Design Approaches

Three approaches come up in almost every design discussion. Each one answers the same question differently: where should integration happen, and how should the data be modeled?

ApproachCore ideaStrengths and trade-offs
Kimball (dimensional)Build business-process data marts as star schemas that share conformed dimensionsFast to deliver and easy for analysts and BI tools to query, but needs discipline to keep shared dimensions consistent across marts
Inmon (enterprise)Build a normalized, integrated enterprise warehouse first, then feed data marts from itOne integrated source of truth that is flexible for many uses, but it takes longer to deliver the first results and needs more modeling up front
Data VaultModel raw integration with hubs (business keys), links (relationships), and satellites (history)Handles many changing sources and keeps full history, but adds tables and joins and usually needs a dimensional layer on top for reporting

In practice, many teams land raw data, integrate it in a middle layer, and publish dimensional models for reporting. That pattern borrows from all three.

Data Warehouse Architecture: The Layers Most Designs Use

Whatever approach you pick, most warehouses separate data into layers, each with one job:

LayerWhat it holdsWho uses it
Raw or stagingSource data loaded as is, with load timestampsData engineers, for reprocessing and audits
Integrated or cleanedDeduplicated, typed, and validated data with consistent keysData engineers and analytics engineers
Presentation or martsFact and dimension tables or aggregates shaped for questionsAnalysts, dashboards, and BI tools

Lakehouse teams often call these layers bronze, silver, and gold, as explained in our guide to medallion architecture. Microsoft’s modern data warehouse playbook recommends at least three zones, such as raw, enriched, and curated, with the warehouse acting as a serving layer for BI reporting.

How to Design a Data Warehouse in 7 Steps

1. Start with business questions

List the decisions people need to make and the metrics behind them, such as weekly revenue by region or customer churn by plan. Talk to the people who will use the data, and write down the definitions they use for each metric.

2. Map and profile the source systems

For each question, find the systems that hold the data: databases, SaaS tools, event streams, or files. Profile them for volume, update frequency, keys, null rates, and known quality problems before you design any tables.

3. Choose the approach and platform

Pick a modeling approach that fits your team and sources, and a platform that fits your scale and budget. A cloud warehouse such as Snowflake or BigQuery, or a lakehouse on Databricks, can host the same design; our article on Snowflake data warehouse architecture shows how one platform stores and processes data.

4. Select the business process and declare the grain

The Kimball Group’s four-step design process starts with four decisions: select the business process, declare the grain, identify the dimensions, and identify the facts. The grain states exactly what one row of a fact table represents, such as one row per order line. Kimball recommends starting from the most detailed, atomic grain, because it holds up best against questions nobody has thought of yet.

5. Model facts and dimensions

Fact tables hold measurements at the declared grain, such as quantity and amount. Dimension tables hold the descriptive context, such as product, customer, store, and date. Most reporting layers use a star schema; our comparison of star schema vs snowflake schema explains when to normalize a dimension instead.

6. Plan for history

Decide how each dimension handles change. Some attributes can be overwritten, while others need full history so past reports stay correct. The most common pattern for full history is a Type 2 slowly changing dimension, covered step by step in our guide to slowly changing dimensions Type 2 with SQL and dbt.

7. Design loads, performance, and quality checks

Choose batch or incremental loads for each table, define how late or corrected data is handled, and plan partitioning or clustering for the largest tables (see partitioning and clustering in warehouses). Add automated tests for keys, row counts, and freshness so problems are caught before they reach a dashboard. Our article on data quality for data engineers covers which checks to start with.

A Simple Example: Designing an Orders Mart

Suppose an online store wants revenue by product, customer segment, and day. The business process is order fulfillment, and the grain is one row per order line. That leads to one fact table and three dimensions (date, product, and customer); two of the tables are shown below:

-- Grain: one row per order line
CREATE TABLE fact_order_line (
  order_id      VARCHAR(20),
  line_number   INT,
  date_key      INT,          -- references dim_date
  product_key   INT,          -- references dim_product
  customer_key  INT,          -- references dim_customer
  quantity      INT,
  net_amount    DECIMAL(12,2)
);

-- Customer keeps history (Type 2) so old orders keep the segment they had
CREATE TABLE dim_customer (
  customer_key  INT PRIMARY KEY,   -- surrogate key
  customer_id   VARCHAR(20),       -- business key from the source
  segment       VARCHAR(30),
  valid_from    DATE,
  valid_to      DATE,
  is_current    BOOLEAN
);

A report then joins the fact table to its dimensions and aggregates:

SELECT d.calendar_date,
       c.segment,
       SUM(f.net_amount) AS revenue
FROM fact_order_line f
JOIN dim_date d     ON f.date_key = d.date_key
JOIN dim_customer c ON f.customer_key = c.customer_key
GROUP BY d.calendar_date, c.segment;

Because each fact row points to the customer version that was valid at the time of the order, revenue by segment stays correct even after a customer changes segment.

Data Warehouse Design Best Practices

  • Agree on metric definitions early. Write down how revenue, active customer, or churn is calculated, and use the same definition everywhere.
  • Use surrogate keys in dimensions. They protect the model from source key changes and make history tracking possible.
  • Conform shared dimensions. Use one customer and one date dimension across marts so numbers line up between reports.
  • Keep raw data. A raw layer lets you reprocess when logic changes or a bug is found.
  • Name things for the business. Clear table and column names make the warehouse usable without a guide.
  • Document and test. Describe each table’s grain and owner, and automate tests for keys and freshness.

Common Data Warehouse Design Mistakes

MistakeWhy it hurtsBetter approach
Copying source tables one to oneReports inherit the source system’s complexityModel around business processes and questions
Mixing grains in one fact tableSums double count and numbers stop matchingOne declared grain per fact table
Overwriting history by defaultPast reports change without anyone noticingDecide per attribute; use Type 2 where history matters
Skipping data quality checksBad data reaches dashboards and erodes trustTest keys, row counts, and freshness on every load
Designing everything up frontMonths pass before anyone sees valueDeliver one business process at a time

How Data Warehouse Design Comes Up in Data Engineering Interviews

Design rounds often give you a business scenario and ask you to model it. Be ready to:

  • ask clarifying questions about the business process and the metrics before drawing tables;
  • state the grain of each fact table and explain why;
  • choose between a star and a snowflake design, and explain how you would handle changing dimensions;
  • describe how data is loaded, how late data is handled, and how you would test the result.

For more modeling depth, see our guide to advanced data modeling techniques. If you want mock interviews and a personalized skill gap plan to prepare, DE Academy offers personalized training.

Frequently Asked Questions

How do you design a data warehouse?

Start with the business questions, map and profile the source systems, choose a design approach and platform, declare the grain of each fact table, model facts and dimensions, plan how history is kept, and design loads and quality checks. Deliver one business process at a time and test with real queries.

What is data warehouse design?

It is the process of deciding how data from different systems is integrated, modeled, stored, and loaded into a warehouse so people can analyze it reliably. It covers the design approach, the layers, the data model, history handling, and load patterns.

What are the main data warehouse design approaches?

The three classic approaches are Kimball’s dimensional modeling, Inmon’s normalized enterprise warehouse, and Data Vault. Many modern warehouses combine them, for example a raw layer, an integrated layer, and dimensional marts for reporting.

What is the grain in data warehouse design?

The grain defines exactly what one row in a fact table represents, such as one row per order line or one row per daily account balance. The Kimball Group calls declaring the grain the pivotal step, because every dimension and fact must match it.

Should I use a star schema or a snowflake schema?

For most reporting and BI use, a star schema is the common default because it needs fewer joins and is easier to query. A snowflake schema can make sense for a few large dimensions or shared hierarchies with a clear reason.

Design Around the Business, Then Build the Tables

Good data warehouse design is less about the tool and more about clear decisions: which questions matter, what each table row means, and how history and quality are handled. Start small with one business process, get the grain and definitions right, and grow the warehouse from there.

ABOUT THE AUTHOR