One Big Table: The Denormalized Approach to Data Modeling

Learn how One Big Table architecture simplifies data pipelines by combining all attributes into single wide denormalized tables.

published: reading time: 14 min read author: Geek Workbench updated: November 23, 2026
Quick Summary

One Big Table (OBT) is a denormalized serving model that puts commonly queried attributes in a wide table. It can simplify analytics queries, but repeated data makes updates, history, and schema changes harder to manage. Warehouses often build OBTs from durable source data; a bounded application can own a denormalized model when it can enforce its invariants and update paths.

One Big Table: The Denormalized Approach to Data Modeling

One Big Table (OBT) is a denormalized serving model. It combines attributes that would otherwise live in related tables so reporting queries need fewer joins. In a warehouse, it is usually derived from durable source data rather than the authoritative record for each entity.

An order table might include order fields alongside customer, product, and store attributes. That makes common reports easier to query, but it repeats mutable values across rows and makes updates and historical questions harder. A narrowly scoped application can own a denormalized table if it can enforce its invariants and update every affected row atomically; that choice does not fit every workload.

Columnar storage and distributed query engines can make wide analytical tables efficient to read. They do not remove scan costs, repeated data, or update anomalies, so measure the workload before choosing this model.

The Core Philosophy

OBT moves some of the work from query time to the load pipeline. Instead of joining several tables in each report, the pipeline joins them once and stores the result. That can help when readers run the same kinds of queries often, but every source or schema change then has to be reflected in the pipeline and the wide table.

OBT trades storage for simpler queries. A report can read order and customer fields from one table without rebuilding the same joins each time. The wide table still has scan and update costs.

-- OBT style: one query, no joins
SELECT
    order_date,
    customer_name,
    customer_region,
    product_name,
    product_category,
    store_city,
    quantity,
    unit_price,
    total_amount
FROM rpt_orders
WHERE order_date >= '2026-01-01';

Compare to the equivalent star schema query joining fact_sales to dim_customer, dim_product, dim_store, and dim_date. The OBT query is simpler to write and understand.

Why OBT Makes Sense in Modern Data Warehouses

Cloud warehouses such as BigQuery, Snowflake, and Redshift use columnar storage and parallel query execution. Those features can reduce the cost of repeated values and let queries read only the columns they need, but they do not make every wide table faster or cheaper.

Measure representative queries. Row width, partitioning, clustering, filters, and cache behavior all affect scan cost and latency.

An OBT can make common reports easier to query and help new analysts find the fields they need. It also moves complexity into the build and refresh pipeline, which needs clear ownership and lineage.

Structure of an OBT

An OBT report table combines fields that would be spread across fact and dimension tables in a star schema. The example below has one row per order line. If a report needs one row per order instead, aggregate the line items or store them in a nested field; do not mix the two grains in one table.

CREATE TABLE rpt_orders (
    -- Row grain: one product line within a source order
    source_system VARCHAR(50) NOT NULL,
    order_id BIGINT NOT NULL,
    line_number INT NOT NULL,
    order_number VARCHAR(20),
    order_date DATE,
    order_datetime TIMESTAMP,

    -- Customer attributes (denormalized)
    customer_id INT,
    customer_name VARCHAR(200),
    customer_email VARCHAR(200),
    customer_region VARCHAR(100),
    customer_segment VARCHAR(50),
    customer_tier VARCHAR(20),

    -- Product attributes (denormalized)
    product_id INT,
    product_name VARCHAR(200),
    product_category VARCHAR(100),
    product_subcategory VARCHAR(100),
    product_brand VARCHAR(100),

    -- Store attributes (denormalized)
    store_id INT,
    store_name VARCHAR(200),
    store_city VARCHAR(100),
    store_region VARCHAR(100),
    store_format VARCHAR(50),

    -- Order metrics
    quantity_ordered INT,
    unit_price DECIMAL(10,2),
    discount_percent DECIMAL(5,2),
    discount_amount DECIMAL(10,2),
    total_amount DECIMAL(12,2),
    cost_of_goods DECIMAL(12,2),

    -- Order status
    order_status VARCHAR(50),
    is_returned BOOLEAN,

    -- Processing dates
    shipped_date DATE,
    delivered_date DATE,
    days_to_ship INT,
    days_to_deliver INT,

    -- Audit columns
    load_timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    PRIMARY KEY (source_system, order_id, line_number)
);

Every attribute you need for order analysis is in one table. The analyst does not need to know which attributes come from which source system or how to join them.

In some analytical warehouses, a declared primary key is informational rather than enforced. Test that the source-system, order, and line-number combination is unique after each load.

Loading OBT Tables

The load process joins durable order-line data with customer, product, and store attributes. The example assumes staging tables retain enough history to rebuild the reporting table when a source field or transformation changes.

def load_rpt_orders(source_orders, source_customers, source_products, source_stores):
    """Denormalize order data from multiple sources."""

    query = """
        SELECT
            o.source_system,
            o.order_id,
            o.line_number,
            o.order_number,
            o.order_date,
            o.quantity,
            o.unit_price,
            o.discount,
            o.total_amount,
            c.customer_id,
            c.customer_name,
            c.customer_region,
            p.product_id,
            p.product_name,
            p.category,
            s.store_id,
            s.store_city
        FROM staging_order_lines o
        LEFT JOIN staging_customers c ON o.customer_id = c.customer_id
        LEFT JOIN staging_products p ON o.product_id = p.product_id
        LEFT JOIN staging_stores s ON o.store_id = s.store_id
    """

    # Execute query and load into OBT
    result = execute_query(query)
    insert_into_rpt_orders(result)

The denormalization happens in the ETL layer. The reporting layer sees only flat, joined data.

Deduplicate and rebuild after a schema change

Suppose the source adds fulfillment_channel and may send more than one version of an order line. Rank each line’s records by source update time, then use ingestion time and a unique ingestion ID to break ties. On a warehouse that supports CREATE OR REPLACE TABLE, a full rebuild can select the latest record, join the current dimension data, and include the new field. The query below shows only a few fields; keep the other columns your reports need in the production projection:

CREATE OR REPLACE TABLE rpt_orders AS
WITH ranked_lines AS (
    SELECT
        *,
        ROW_NUMBER() OVER (
            PARTITION BY source_system, order_id, line_number
            ORDER BY source_updated_at DESC, ingested_at DESC, ingestion_id DESC
        ) AS row_num
    FROM staging_order_lines
)
SELECT
    o.source_system,
    o.order_id,
    o.line_number,
    o.order_date,
    o.fulfillment_channel,
    c.customer_name,
    p.product_name,
    o.quantity AS quantity_ordered,
    o.unit_price,
    o.total_amount
FROM ranked_lines o
LEFT JOIN staging_customers c ON o.customer_id = c.customer_id
LEFT JOIN staging_products p ON o.product_id = p.product_id
WHERE o.row_num = 1;

Treat this as warehouse-style SQL; CREATE OR REPLACE behavior differs by platform. Validate the rebuilt table’s grain, row counts, and financial totals before switching readers to it. If a full rebuild is too expensive, use a key-based MERGE with the same deduplication and validation rules. Keep a durable source or snapshot so a rebuild can reproduce older results.

Handling Changes with OBT

One trade-off of OBT is handling slowly changing dimensions. In a star schema, SCD strategies are explicit. In OBT, you need a different approach.

Approach 1: Latest Value Only

For attributes where historical accuracy is not critical, you overwrite with the latest values.

UPDATE rpt_orders
SET customer_tier = 'Gold',
    customer_region = 'Northeast'
WHERE customer_id = 12345;

This works when you only care about current state and do not need to analyze historical values.

Approach 2: Effective Date Columns

For attributes that need historical tracking, include effective date columns in the table.

ALTER TABLE rpt_orders ADD COLUMN customer_tier VARCHAR(20);
ALTER TABLE rpt_orders ADD COLUMN customer_tier_effective_date DATE;
ALTER TABLE rpt_orders ADD COLUMN customer_tier_expiry_date DATE;

The reporting query filters to the appropriate effective date range.

Approach 3: Separate History Table

Keep a full history in a separate table and load the latest state into the OBT.

-- History table: complete audit trail
CREATE TABLE hist_customer_changes (
    customer_id INT,
    attribute_name VARCHAR(50),
    old_value VARCHAR(200),
    new_value VARCHAR(200),
    change_date TIMESTAMP
);

-- OBT: latest values only
CREATE TABLE rpt_customer (
    customer_id INT PRIMARY KEY,
    customer_name VARCHAR(200),
    customer_tier VARCHAR(20),
    last_updated TIMESTAMP
);

This separates the concerns of historical analysis and current state reporting.

Advantages of One Big Table

The appeal of OBT is straightforward:

Query simplicity. Analysts write single-table queries without joins. This reduces errors and speeds up ad-hoc analysis.

Faster development. New reports do not require understanding a complex schema of related tables. If the data is in the table, you query it.

Easier onboarding. New team members can be productive faster when there is only one table to understand.

Debugging is simpler. When data looks wrong, you check one table instead of tracing through multiple joins.

Cloud-native performance. Columnar cloud databases handle wide denormalized tables efficiently. Compression makes storage reasonable, and MPP execution makes queries fast.

Disadvantages and Trade-offs

OBT is not without critics:

Data redundancy. The same customer attributes appear on every order that customer places. Storage costs increase compared to normalized designs.

Update anomalies. When a customer moves to a new region, you must update every row for that customer. Miss one and you have inconsistent data.

Unclear ownership. In a star schema, dimension tables have clear owners. In OBT, who owns the customer attributes on the order table?

Loss of relationship information. OBT hides the relationships between entities. You cannot easily see what other orders a customer has placed without querying the orders table.

Difficulty in change management. Schema changes to a wide table are more impactful. Adding a column affects the entire table.

OBT in the Modern Data Stack

OBT has found renewed popularity with the rise of dbt and modern transformation layers.

In a dbt project, you might model your data as OBT:

-- models/reporting/rpt_orders.sql
{{ config(materialized='table') }}

SELECT
    o.order_id,
    o.order_date,
    c.customer_name,
    c.customer_region,
    p.product_name,
    p.product_category,
    s.store_city,
    o.quantity,
    o.total_amount
FROM {{ ref('stg_orders') }} o
LEFT JOIN {{ ref('stg_customers') }} c ON o.customer_id = c.customer_id
LEFT JOIN {{ ref('stg_products') }} p ON o.product_id = p.product_id
LEFT JOIN {{ ref('stg_stores') }} s ON o.store_id = s.store_id

The staging layer maintains normalized data. The reporting layer denormalizes into OBT tables. You get the best of both worlds: clean source data and simple reporting queries.

This layered approach limits update anomalies: the warehouse builds the OBT from its durable source tables or snapshots, then validates the result before publishing it. A transient staging table is not automatically a system of record; make clear which source is authoritative and how the OBT can be rebuilt from it.

flowchart TB
    subgraph "Star Schema"
        F[fact_sales<br/>sale_id&#44; product_id&#44; customer_id]
        D1[dim_product<br/>product_id&#44; name&#44; category]
        D2[dim_customer<br/>customer_id&#44; name&#44; region]
        D3[dim_date<br/>date_id&#44; year&#44; month]
        F --> D1
        F --> D2
        F --> D3
    end
    subgraph "One Big Table"
        OBT[rpt_orders<br/>order_id&#44; customer_name&#44; customer_region&#44; product_name&#44; product_category&#44; store_city&#44; quantity&#44; total_amount]
    end

When OBT Works Well

OBT is a good fit when:

Query patterns are predictable. If users mostly query order data with customer and product context, OBT serves those queries well.

Analytics latency is acceptable. Denormalized tables are refreshed on a schedule. Real-time updates are more complex.

Storage costs are not prohibitive. Cloud storage is cheap, but denormalization multiplies storage requirements.

Team has strong data governance. Without the structural constraints of a star schema, data quality depends more on governance processes.

For organizations that prioritize query simplicity and fast development cycles over storage efficiency, OBT is a reasonable choice.

One Big Table Production Failure Scenarios

Update anomaly causing inconsistent customer region

A customer moves from “West” to “Northeast.” The ETL job runs an UPDATE on the rpt_orders table but only processes 99% of the customer’s rows because the job fails mid-way through. The customer now has “West” on older orders and “Northeast” on newer ones. Revenue reports by region are inconsistent until the next full refresh.

Here is what makes this dangerous. OBT stores the same customer attribute on every order row for that customer. When a customer moves region, every single row for that customer needs to be updated. If the UPDATE job misses even a small percentage of rows, those rows keep the old attribute value permanently. The job does not fail. It reports success. There is no error, no exception, just data that does not match reality.

The root cause is structural. OBT mixes mutable customer attributes with immutable order facts in the same table. An UPDATE to a customer attribute must touch every row for that customer. Miss one row and you have a permanent inconsistency that will not correct itself until someone notices or a full refresh runs. Revenue reports by region become unreliable, showing orders attributed to the wrong geography until the next complete reload.

Mitigation: Build the OBT from authoritative source tables or durable snapshots, then use a complete refresh or a key-based MERGE. If the application owns the denormalized model, update all affected rows in one transaction and monitor the affected row count. Do not rely on a temporary staging table as the only recovery copy.

SCD handling producing wrong historical totals

The team uses latest-value-only (Type 1) for customer tier in rpt_orders. An analyst queries historical revenue by customer tier for the past year. The result shows all historical orders attributed to the customer’s current tier, not the tier they had at the time of purchase. Marketing sees inflated Gold customer revenue that never actually existed.

The problem is in the mechanics of Type 1. When a customer tier changes, the new tier value overwrites every row for that customer in the table. Historical queries then return the current tier value instead of the tier value at the time of each transaction. A customer who was Silver for most of last year but upgraded to Gold last month will show all their historical orders under Gold in the report.

This affects real business decisions. Marketing sees inflated Gold customer revenue and might allocate budget based on numbers that never actually existed. The analyst has no reason to doubt the report. The data is structured correctly, the numbers are internally consistent, and there are no error messages. The data is simply wrong in a way that only shows up when you already know the customer’s history.

Mitigation: Be explicit about SCD limitations in documentation. For historical analysis, use effective date columns (Type 2 equivalent) or a separate history table. Do not let business users assume OBT supports historical SCD when it uses Type 1.

Schema change requiring full table rewrite

A new requirement adds 15 new columns to rpt_orders. The ALTER TABLE runs for 4 hours on a 500GB table, during which the table is locked or significantly degraded. BI tools time out. Dashboard users see errors.

Wide tables create operational friction that narrow tables avoid. Adding columns to a 500GB table is not a fast metadata operation. It requires updates across the entire table structure. In most cloud warehouses, ALTER TABLE is still a slow operation on large tables, even if it is faster than it used to be. The table is effectively unavailable during this time, and downstream tools that depend on it will fail or time out.

This is a planned change, but it still causes an outage. The team knew the requirement, scheduled the change, and communicated it. It still disrupted users for hours. For a table that is central to reporting, even planned changes carry real costs.

Mitigation: Add columns as a separate operation from data population. Add the column, backfill data in batches during low-traffic windows, then make the column visible to users. For very large tables, use a shadow-table approach: create the new table, switch reads to it atomically, then drop the old table.

Load job duplication inflating order counts

The ETL load is not idempotent. A rerun of yesterday’s load inserts duplicate rows into rpt_orders instead of replacing them. Every subsequent aggregation is double-counted. The issue goes undetected for three days until an analyst notices revenue is exactly 2x expected.

Non-idempotent loads append instead of merge. When the job reruns for any reason, a failed retry, a manual re-run, an orchestration bug, it inserts rows that already exist. The duplicates are real orders. They pass validation checks because the data itself is valid. Only when someone compares the aggregate against an independent source do they see the problem. By then, three days of reports have been wrong.

Mitigation: Always design OBT loads to be idempotent. Use a truncate-and-reload pattern for full refresh, or use a merge (UPSERT) with proper key handling. Add row count validation checks after every load: compare count and sum(amount) against source systems.

One Big Table Quick Recap

  • OBT combines fact and dimension data into single wide tables for query simplicity—no joins needed.
  • Works well on columnar cloud warehouses (BigQuery, Snowflake, Redshift) where denormalization is efficient.
  • Trade-offs: update anomalies require careful handling, storage redundancy is unavoidable, schema changes are expensive.
  • SCD handling is limited: latest-value-only destroys history; add effective date columns for point-in-time correctness.
  • In a warehouse, build OBT from durable authoritative data so it can be rebuilt. An application may own a denormalized serving model when it can enforce invariants and keep all update paths consistent.
  • Validate row counts and sums after every load; design all loads to be idempotent.

Compare this to Kimball Dimensional Modeling for structured star schemas or Data Vault for enterprise-scale auditability. See Lakehouse Architecture for storage and processing patterns, and Database Normalization for the trade-offs OBT relaxes.

Category

Related Posts

Data Vault Modeling: Hubs, Links, Satellites, and Trade-offs

Learn how Data Vault hubs, links, and satellites organize integrated warehouse history, where deterministic hash keys fit, and when a simpler dimensional model is a better choice.

#data-engineering #data-modeling #data-vault

Kimball Dimensional Modeling: Star Schema Techniques

Learn Kimball dimensional modeling with a sales-line example covering grain, surrogate keys, late-arriving dimensions, SCD choices, and star-schema trade-offs.

#data-engineering #data-modeling #kimball

Slowly Changing Dimensions: History in Data Warehouses

Master Slowly Changing Dimension techniques including Type 1, Type 2, and Type 3 for maintaining historical accuracy in data warehouses.

#data-engineering #data-modeling #slowly-changing-dimensions