Data Mart vs Data Warehouse: Types, Metric Drift, and What to Build

Data mart vs data warehouse explained: see a $30,850 revenue drift example, the 3 types, Kimball vs Inmon vs dbt, and a 4-question build test.

Two dashboards, one meeting. Sales says September revenue was $412,800. Finance says $381,950. Both teams ran correct queries against correct tables, and both are about to spend forty minutes arguing about whose numbers are broken.

Nothing is broken. The $30,850 gap comes from two data marts that each defined “revenue” on their own. (The store, the systems, and every dollar figure in this guide are a hypothetical worked example, built so the arithmetic can be checked line by line. They are not real company data.)

That small scene shows what the pages we reviewed in November 2026 leave abstract: none of the eight ranking pages put a number on metric drift. They tell you a mart is a smaller warehouse for one team, which is true and almost useless. The harder questions are the ones practitioners actually argue about. Is a mart a folder, a schema, or a product? Should marts follow departments or business processes? Do you still need them if you have a semantic layer or a one big table?

Even people close to Bill Inmon’s own audience say the debate gets stuck. A commenter on Inmon’s Substack post comparing the two architectures complained that the Inmon-versus-Kimball argument turns “abstract and ‘hand-wavy’, with few concrete worked examples.” So this guide does the opposite. It runs one online outdoor-gear store through three schools of thought: Kimball’s, Inmon’s, and dbt’s. (dbt here is the data build tool for SQL transformations, not the therapy.) Along the way you will see where the famous “under 100 GB” rule came from, why it never defined anything, and a four-question test for deciding what to build.

Key takeaways

Click any topic to expand or collapse
What a data mart actually is

A data mart is a set of tables built for one audience, carved from data the whole business shares. In a dbt project it is usually a folder of models inside the same warehouse.

Audience and source define a mart

Audience and source separate a mart from a warehouse. Size and technology do not. Oracle’s own guide admits nothing in the definitions limits mart size.

Upstream sources drive metric drift

Where a mart reads from decides whether it drifts. Independent marts can disagree. In our example, $412,800 vs $381,950 is a fully explained $30,850 gap.

Kimball, Inmon, and dbt

Kimball, Inmon, and dbt all want one revenue number. They disagree about where the single definition should live.

Folders vs. model naming

Folders can follow the org chart. Models should follow business processes. That one rule settles most dbt naming fights.

Four-question decision test

Use a four-question test to choose between a mart, a semantic layer, a one big table, or nothing at all.

Reproducible example and test

The example is reproducible. We ran it in a small dbt project, and a 10-line test caught the drift.

What is a data mart?

A data mart is a curated set of tables shaped for one business area, such as sales or finance, so the people in that area can answer their own questions without learning the whole warehouse. It usually draws its data from a warehouse, and it is defined by who it serves, not by how big it is.

Clean enterprise data architecture diagram showing raw sources and a data lake feeding a central data warehouse that powers sales and finance data marts
A data warehouse integrates shared definitions across all sources; data marts slice that modeled data for specific teams.

The big vendors say the same thing in slightly different words. Amazon Web Services defines a data mart as a data storage system holding information specific to a business unit. IBM’s explainer calls it a subset of a data warehouse focused on one line of business, department, or subject area. Snowflake’s guide adds that it is tailored to a particular business unit or user group.

Notice what none of those definitions mention: a product, a license, or a database engine. That is why the question “is a data mart a database?” keeps coming up. The honest answer is that a mart is rarely its own database. It is a curated slice, often a schema or a folder of models, living inside a database or warehouse you already run.

What is a data warehouse?

A data warehouse is a central store of structured, integrated data from many sources, designed for reporting, planning, and decision-making. Microsoft’s cloud dictionary describes it in nearly those terms. The classic formal definition comes from Bill Inmon, often called the “father of data warehousing”: a subject-oriented, integrated, time-variant, and non-volatile collection of data.

The word that matters there is integrated. A warehouse is where “customer” and “order” get one agreed meaning across every source system. A mart is what you build after that agreement exists.

A warehouse covers every subject a business has. A mart covers one, for one audience.

Data mart vs data warehouse: the comparison table

The classic comparison comes from Oracle’s 8i-era Data Warehousing Guide, whose pages carry a 1999 copyright. Most rows below come from the guide’s own table. “Typically run by” comes from its surrounding text, and the last row is this article’s addition: the question the old guide never needed to ask, which is who decides what “revenue” means.

Data warehouse vs data mart at a glance
DimensionData warehouseData mart
ScopeCorporateOne line of business
SubjectsMultipleSingle
Data sourcesManyFew
Typical size (Oracle’s table)100 GB to TB+Under 100 GB
Implementation timeMonths to yearsMonths
Typically run byCentral group (corporate IT)A single department
Who defines “revenue”?Settled once, centrallyInherited from the warehouse, or invented locally (the risk)

Treat the last row as this article’s addition, not Oracle’s. It is the row that explains why the whole topic exists.

The “under 100 GB” myth

Search for the size row and you will find it repeated as fact. IBM’s explainer states that a data mart houses under 100 GB, with no qualifier. The same figure sits in the Oracle guide’s table, where it is labeled “typical.” We cannot tell whether IBM took it from there. What we can check is what Oracle says. Just above its table, the guide states that “nothing in these basic definitions limits the size of a data mart.” It adds only that marts are typically smaller and less complex than warehouses, and so typically easier to build and maintain.

So the size row describes what Oracle expected to see around 1999. It does not define a mart. A mart is data reshaped for a narrower audience, and that is the whole test.

Where lakes and databases fit

Readers often ask for a four-way comparison, so here it is in one table. Where data lakes fit in the picture is a topic of its own, but the short version is that a lake holds raw data in any format, while marts and warehouses hold modeled, business-ready tables.

Four objects people confuse
ObjectWhat it holdsWho uses itIn our gear store
DatabaseAny structured data, built for transactions or analysisApplications, engineersThe orders database behind the storefront
Data lakeRaw data in any formatData engineers, data scientistsRaw payment and ad-platform exports
Data warehouseIntegrated, modeled data across subjectsAnalysts across the companyOne model joining orders, payments, returns, and ads
Data martA slice of modeled data for one audienceOne team, such as sales or financeThe sales mart and the finance mart

Technology rarely separates a mart from a warehouse. Audience and source do, and the source is where trouble starts.

A data mart example: one outdoor-gear store

Picture an online store that sells outdoor gear. Its warehouse pulls from four systems: the orders database behind the storefront, the payment provider, the return system, and the ad platforms. (How the ETL layer feeds all of this is its own topic. Here we only care that four systems arrive and one model of the business leaves.)

The data team joins all four into a single model. Then two groups ask for their own slices:

  • Sales mart: orders, customers, products, and ad spend, shaped so an analyst can ask which campaign drove which orders.
  • Finance mart: payments, refunds, gift cards, and revenue, shaped for the month-end close.
Text: Worked example data flow for an online outdoor-gear store joining four source systems into a warehouse and serving sales and finance data marts
Hypothetical outdoor-gear store example: four operational feeds combine into one shared model before splitting into audience-specific marts.

Each one is a slice of the warehouse reshaped for one audience. That is a data mart in practice. Whether this particular cut is the right one depends on which school you ask, and we will get there. First, the question that decides how much trouble these two marts cause: where does each one read its data from?

The three types of data marts: dependent, independent, hybrid

Data marts come in three types, sorted by one thing: where the mart gets its data. Oracle’s guide states the rule plainly: the categorization is based primarily on the data source feeding the mart. Industry convention uses the same split.

  1. Dependent: draws from a central data warehouse that already exists.
  2. Independent: a standalone system built straight from operational or external sources.
  3. Hybrid: does both, for example when a new product group joins before its data reaches the warehouse.
The three types, applied to the gear store
Dependent
Reads from: the central warehouse
Store example: sales and finance both read one settled revenue number.
Risk: low drift. The cost is waiting for the warehouse to model the data first.
Independent
Reads from: the operational sources directly
Store example: sales builds off the orders database, finance off the payment provider.
Risk: high drift. Each mart invents its own revenue.
Hybrid
Reads from: the warehouse and direct sources
Store example: the store acquires a camping-stove brand whose orders are not in the warehouse yet.
Risk: medium. Drift sits at the seam, so plan the cutover.

Oracle’s guide also explains why each type tends to exist. It says dependent marts are usually built for performance, availability, and control, while independent marts are often driven by the need for a solution in a shorter time. That is the trade you are making: speed now, or one shared definition later.

Most pages that explain these types stop there. The useful part is the consequence. Independent marts are where metric drift is born. Dependent marts line up with Inmon’s school, which we cover below. Hybrid marts are what real organizations look like in the middle of an acquisition or a migration.

That also answers a common search question, can a data mart exist without a data warehouse? Yes. That is exactly what an independent mart is. It just takes on a job the warehouse would otherwise do: agreeing on what the numbers mean.

The three types are not a vocabulary quiz. They are three different answers to “who is responsible for the definition of revenue?”

When two marts disagree: the $30,850 drift ledger

Now take the same store and remove the warehouse. Sales built its mart straight off the orders database. Finance built its own from the payment provider. Both report September 2026 revenue.

  • Sales says $412,800.
  • Finance says $381,950.

Neither query is wrong. Sales counts every order placed in September at the price the customer paid. Finance takes out $18,450 of refunds and leaves out $12,400 of gift cards, because in this example accounting treats a gift card as a liability until someone spends it.

The drift ledger: September 2026 (hypothetical example)
The full bar is the sales mart’s $412,800. The green part is what finance reports.
Finance revenue: $381,950
Refunds: $18,450
Unspent gift cards: $12,400
Gap: $412,800 āˆ’ $381,950 = $30,850, and $18,450 + $12,400 = $30,850. Every dollar is explained.

The $30,850 gap does not show up as “two definitions.” It shows up as an argument about whose numbers are broken, because the real fault is one word, revenue, carrying two meanings. That is the same pattern behind why one table can produce two defensible answers, and drift is its architectural twin: the data is fine, the definition is not shared.

Definitions are not the only way totals split. Ingestion bugs do it too, for example when duplicate CDC rows quietly change your totals. The ledger above isolates the cleaner case, where every dollar of the gap has a name.

Side-by-side comparison showing how independent data marts cause a $30,850 revenue gap from refunds and unspent gift cards while dependent marts reconcile
Why metrics drift: independent marts invent separate definitions from raw sources, whereas dependent marts inherit one settled formula upstream.

The formula and a calculator you can try

The reconciliation in this example comes down to two lines:

THE DRIFT FORMULA
Finance Revenue = Gross Order Value āˆ’ Refunds āˆ’ Unspent Gift-Card Liability
Drift Gap = Gross Order Value āˆ’ Finance Revenue

Change the inputs to match your own month. The defaults reproduce the store’s September numbers.

Interactive drift calculator
Press Calculate to see the result.

If your own gap does not break down this cleanly into named components, that is the signal. An unexplained remainder usually means a third definition is hiding somewhere, such as different date boundaries or a different grain.

How a dependent mart closes the gap

A dependent mart removes the argument instead of settling it. The warehouse defines revenue once, with refunds and gift cards as their own columns. Both marts read $381,950. If the sales team still wants the bigger number, it gets its own honest name: gross order value, $412,800. That is a different metric, not a competing version of revenue.

Which number is “true” depends on who asks. The controller closing the books needs $381,950. A sales leader judging campaign demand may legitimately want $412,800. The fix is not choosing a winner. It is making sure each number has a name that says what it counts.

Before and after reconciliation
Before: two numbers, one argument
  • Sales reports “revenue” as $412,800.
  • Finance reports “revenue” as $381,950.
  • The meeting is about whose data is wrong.
  • Each mart reads from a different source system.
After: one definition, two honest names
  • revenue = $381,950, defined once in the warehouse.
  • gross_order_value = $412,800, named for what it counts.
  • The meeting is about September demand.
  • Both marts read the same shared tables.

How to carve a mart without drift: 7 steps

  1. Name the audience and their questions. “Which campaign drove which orders?” is a question. “Sales data” is not.
  2. Find the business process underneath. Orders, payments, refunds, and ad spend are processes. Departments are not.
  3. Fix the grain. Decide what one row means, for example one row per order line.
  4. Define shared metrics once, upstream. Give every component (gross, refunds, gift cards) its own column.
  5. Read from shared tables, never from raw sources. A mart that reads sources directly is independent whether you call it that or not.
  6. Name metrics for what they count. gross_order_value and revenue can coexist. Two things called revenue cannot.
  7. Test the reconciliation. Check grain, refund treatment, gift-card liability, and date boundaries, and publish the definitions where users look. Two runnable checks follow: one for independent marts, and a dbt version in the dbt section below.

A reconciliation query for two marts

If you inherit two independent marts, start with the simplest check there is: compare the same metric by month and return only the rows that disagree. The query below is generic SQL. We ran it in DuckDB against two one-row tables holding the September figures from this example. Rename the tables and columns for your own marts, and test it on your own SQL dialect before relying on it.

SQL (generic, tested in DuckDB with the example data):

-- Generic SQL. Returns one row per month where the two marts disagree. select coalesce(s.month, f.month) as month, s.revenue as sales_mart_revenue, f.revenue as finance_mart_revenue, coalesce(s.revenue, 0) - coalesce(f.revenue, 0) as drift_gap from sales_mart_revenue s full outer join finance_mart_revenue f on s.month = f.month where abs(coalesce(s.revenue, 0) - coalesce(f.revenue, 0)) > 0

It returned one row: 2026-09 | 412800 | 381950 | 30850. That is the gap from the ledger, found by a query instead of a meeting.

A gap tells you that two definitions exist. It does not tell you which one is right. That decision belongs to step 6. The check also cannot catch two marts that are wrong in the same way, so treat a pass as “these agree,” not “these are correct.”

Drift is a definition problem wearing a data-quality costume. Fix the definition once, upstream, and name every variant honestly.

Three schools, one store: Kimball vs Inmon vs dbt

Now the question we postponed. Are the sales mart and the finance mart the right cut? The honest answer is that three schools give three different verdicts, and all three want the same thing: one version of revenue. They disagree about where that single definition lives and what a mart should be cut around.

Three-column architecture comparison showing Kimball process star schemas, Inmon warehouse-fed departmental marts, and dbt layered mart models
Kimball, Inmon, and dbt organize marts differently, yet all three aim for a single upstream definition of revenue.

Kimball: cut by business process

Start with the school that has the sharpest opinion on departmental marts. Kimball Group’s Design Tip #3 (Margy Ross, January 2000) calls it one of the most prevalent fallacies in the industry that data marts are defined by business department.

The tip describes architecture diagrams with boxes labeled Marketing, Sales, and Finance data marts, then points out that after reviewing requirements, all three departments usually want the same core information, such as orders data. Instead of a Marketing mart with orders and a Sales mart with orders, it says to build a single detailed Orders mart that multiple departments access.

The tip also closes the “but ours are dependent” loophole. Whether the source is an operational system or a central warehouse, it argues, multiple data flows into departmental marts invariably produce inconsistencies, and the best way to ensure consistency is to publish the data once. Its last line is practical: draft a bus matrix up front, but do not label the rows with department names.

Four years on, Margy Ross returned to the topic in Fables and Facts (October 2004) and took on two myths that still appear in data-mart explainers:

  • Myth: dimensional marts are departmental. Her answer is that dimensional models “shouldn’t be departmentally bound.” A fact table for a fundamental measurement process needs only one physical copy, shared across departments. Departmental copies, she writes, pick up slightly different names, definitions, and business rules, which defeats a single version of the truth.
  • Myth: marts should hold summaries for managers. She disagrees. When you presummarize, she argues, you have presupposed the business question. Atomic data lets users roll up or drill down without database changes.

Kimball’s unit is the business process, the thing being measured. For the store those are orders, payments, refunds, and ad spend. Each process gets one star schema: a fact table of measurements at the most detailed grain (one row per order line), surrounded by dimension tables that give the facts context. A fact row is created when a measurement occurs, which is why the grain is a business event, not a report. (Grain and slowly changing dimensions get a deeper treatment in our data-warehouse interview guide.)

Marts fit together because they share conformed dimensions: the same customer and product tables, with the same columns and contents, everywhere. Kimball’s matrix technique plans them on a grid where the rows are business processes and the columns are dimensions. The Matrix: Revisited describes those columns as the conformed dimensions. Here is one reasonable bus matrix for the store:

Mini bus matrix for the gear store
Rows are business processes. Columns are shared (conformed) dimensions. A filled cell means the dimension applies. This is one reasonable filling, not the only one.
Business processCustomerProductCampaignDate
Ordersā—ā—ā—ā—
Paymentsā—ā€“ā€“ā—
Refundsā—ā—ā€“ā—
Ad spendā€“ā€“ā—ā—

Read the matrix by column. Customer is shared by orders, payments, and refunds, so a “customer” must mean the same thing in all three. That sharing is what lets a campaign analyst and a controller combine their numbers without a translation meeting.

Kimball’s verdict on the store: by these rules, the sales and finance marts are the wrong cut. Revenue belongs in one shared orders mart that every department queries.

Inmon: departmental marts fed by the warehouse

Inmon’s school reaches the opposite verdict on the same marts, while wanting the same outcome. A mart is a departmental structure fed by the warehouse, never by the source systems directly. On his terms, the sales and finance marts are the right cut, provided the warehouse sits above them.

In the Corporate Information Factory model every mart is dependent. As DATAVERSITY summarizes the model, data entering the warehouse is integrated, and the warehouse is the only source of data for the marts. Integration happens once, in the enterprise warehouse, before any mart exists. Each departmental mart then takes a copy of a revenue number that is already settled.

Inmon states the doctrine himself in a December 2025 post, A Tale of Two Architectures: in the corporate information factory, the only source of data for the data marts is the data warehouse. He argues that the warehouse is where the “single version of the truth” lives, the place with a “final word” on which data is right. Before that, he writes, organizations had plenty of data but no idea which of it was correct.

Near the end of the same post he draws a blend of the two schools: the integrated warehouse at the hub, with the marts built as Kimball-style star schemas around it, each sourced from the warehouse. He also argues that Kimball’s simplest early architecture, which fed marts directly from applications, had no single version of the truth. That is Inmon’s argument, and a reader replies in the comments that the 2004 diagram he relies on is an example of what not to do. The blend is worth remembering when the schools are presented as enemies.

The ODS is not a mart
One more box in Inmon’s diagrams gets mistaken for a mart: the operational data store (ODS). The Corporate Information Factory book describes it as a hybrid structure with equally strong elements of operational processing and decision-support processing, and its chapter outline lists the ODS as current-valued and volatile. Inmon’s warehouse definition is the opposite on both counts: time-variant and non-volatile. So an ODS suits questions like “where is this order right now?”, while a mart, drawn from the warehouse, serves analysis over history. That contrast is our reading of the definitions. The book treats the ODS as its own component, and its warehouse chapter lists the ODS as one of the feeds into the warehouse, so it is neither a mart nor a layer under one.

Inmon’s verdict on the store: the sales and finance marts are correct, provided both feed from the warehouse. A mart is never a substitute for one.

dbt: marts as a layer in a project

One place you will meet the word “mart” today is a folder in a dbt project. dbt’s project-structure guide splits the models folder into three layers:

  1. Staging: the “atoms,” one model per source table, kept in the shape of the source system.
  2. Intermediate: stacked logic that prepares staging models to be joined, where grouping switches from source system to area of business concern.
  3. Marts: the layer that brings the pieces together into a wide, rich vision of the entities the organization cares about.

For the store, the folder tree might look like this:

dbt project layout (hypothetical gear store):

models/ ā”œā”€ā”€ staging/ │ ā”œā”€ā”€ shop/ │ │ └── stg_shop__orders.sql │ └── payments/ │ ā”œā”€ā”€ stg_payments__payments.sql │ └── stg_payments__refunds.sql ā”œā”€ā”€ intermediate/ │ └── finance/ │ └── int_orders_joined_to_payments.sql └── marts/ ā”œā”€ā”€ finance/ │ └── orders.sql └── marketing/ └── customers.sql

dbt’s marts page describes each mart as an entity at its own grain, such as an order or a customer. It tells modelers to go wide and denormalized, and it contrasts itself with a traditional Kimball star schema by happily borrowing data from related concepts into each mart. The customers mart, for example, carries order totals right in the customer row.

Then comes the contradiction. The same page says grouping marts by department is the most common structure, while Kimball’s Design Tip #3 called defining marts by department a prevalent fallacy. Both describe what most teams do and reach opposite verdicts. So is dbt on Inmon’s side? Only half.

Its folders are departmental, but its models are not. The same page calls finance_orders and marketing_orders an anti-pattern for the same concept built differently by different teams. Its naming rule is tax_revenue and revenue, not finance_revenue and marketing_revenue.

That is the revenue fix from earlier, written as a naming convention. There is also a sensible exception on the page: finance may need to report revenue to the government differently from how the company measures it day to day. The rule is not “never have two revenue numbers.” It is “make sure they are clearly designed as separate concepts.”

The width is where it can still go wrong. If the customers mart and the orders mart each compute revenue in their own SQL, you have grown two revenue numbers inside one project. The fix is mechanical: compute revenue once, in the shared orders model, and let everything else reference it.

SQL (dbt model, generic SQL; run in dbt-core 1.12.7 with DuckDB, see the test below):

-- models/marts/finance/orders.sql -- Revenue is defined here, once. Other marts reference it. select order_id, customer_id, ordered_at, gross_order_value, refund_amount, gift_card_liability, gross_order_value - refund_amount - gift_card_liability as revenue from {{ ref('int_orders_joined_to_payments') }}
-- models/marts/marketing/customers.sql (excerpt) -- Sum the shared column. Do not recompute it. select customer_id, sum(revenue) as lifetime_revenue, sum(gross_order_value) as lifetime_gross_order_value from {{ ref('orders') }} group by 1

dbt’s own customers example builds from the orders mart in the same way, passing information between marts at different grains.

A drift test for your dbt project

The seven steps earlier are easy to agree with and easy to skip, so we turned the store into a small dbt project and ran it. The environment was dbt-core 1.12.7 with dbt-duckdb 1.11.1 on DuckDB, on November 23, 2026. The project uses the folder layout and models shown above, plus three tiny seed files built to reproduce the September numbers. The orders mart came out at $412,800 gross, $18,450 refunds, $12,400 gift-card liability, and $381,950 revenue. This is a hands-on observation under those conditions, not a benchmark.

The check is a dbt singular test: a SQL file in the tests/ folder that returns rows only when something is wrong. It compares total revenue in the orders mart with total lifetime revenue in the customers mart.

SQL (dbt singular test, tested in dbt-core 1.12.7 with DuckDB):

-- Singular test: any returned row is a failure. -- Fails when the customers mart and the orders mart disagree on total revenue. with orders_total as ( select sum(revenue) as revenue from {{ ref('orders') }} ), customers_total as ( select sum(lifetime_revenue) as revenue from {{ ref('customers') }} ) select orders_total.revenue as orders_revenue, customers_total.revenue as customers_revenue, orders_total.revenue - customers_total.revenue as drift_gap from orders_total cross join customers_total where orders_total.revenue <> customers_total.revenue

We ran it twice.

What we observed when we ran it (November 23, 2026)
RunWhat the customers mart didOrders mart revenueCustomers mart revenueTest result
1Summed the shared revenue column$381,950$381,950PASS
2Recomputed revenue locally and forgot gift cards$381,950$394,350FAIL: drift_gap = āˆ’12,400

The second run is the useful one. The customers mart looked reasonable, built without errors, and was $12,400 too high, which is exactly the gift-card amount. Nothing in the model failed. Only the comparison did.

Show the supporting files (seeds, staging models, intermediate model)
CSV seeds (hypothetical gear store, September 2026):
# seeds/shop_orders.csv
order_id,customer_id,ordered_at,order_total
O1001,C1,2026-09-03,120000
O1002,C2,2026-09-09,95300
O1003,C1,2026-09-14,78500
O1004,C3,2026-09-20,61000
O1005,C4,2026-09-25,38000
O1006,C2,2026-09-29,20000

# seeds/payments.csv
payment_id,order_id,gift_card_amount
P1,O1001,7400
P2,O1005,5000

# seeds/refunds.csv
refund_id,order_id,refund_amount
R1,O1002,9000
R2,O1004,6450
R3,O1006,3000
SQL (dbt staging and intermediate models, tested in dbt-core 1.12.7 with DuckDB):
-- models/staging/shop/stg_shop__orders.sql
select
    order_id,
    customer_id,
    cast(ordered_at as date) as ordered_at,
    order_total as gross_order_value
from {{ ref('shop_orders') }}

-- models/staging/payments/stg_payments__payments.sql
select
    payment_id,
    order_id,
    gift_card_amount
from {{ ref('payments') }}

-- models/staging/payments/stg_payments__refunds.sql
select
    refund_id,
    order_id,
    refund_amount
from {{ ref('refunds') }}

-- models/intermediate/finance/int_orders_joined_to_payments.sql
with orders as (
    select * from {{ ref('stg_shop__orders') }}
),
gift_cards as (
    select
        order_id,
        sum(gift_card_amount) as gift_card_liability
    from {{ ref('stg_payments__payments') }}
    group by 1
),
refunds as (
    select
        order_id,
        sum(refund_amount) as refund_amount
    from {{ ref('stg_payments__refunds') }}
    group by 1
)
select
    orders.order_id,
    orders.customer_id,
    orders.ordered_at,
    orders.gross_order_value,
    coalesce(refunds.refund_amount, 0) as refund_amount,
    coalesce(gift_cards.gift_card_liability, 0) as gift_card_liability
from orders
left join refunds
    on orders.order_id = refunds.order_id
left join gift_cards
    on orders.order_id = gift_cards.order_id

This shows that the example reconciles and that the test fires when one mart recomputes a shared definition. It does not show how other warehouses or dbt versions behave, and it cannot catch two models that are wrong in the same way. A real project would also add tests on the shared model itself.

dbt’s verdict on the store: keep the departmental folders if your team finds them useful, but build one shared orders model. That is Kimball’s single orders mart, only wider.

The three schools side by side

Kimball vs Inmon vs dbt on the same store
 KimballInmondbt
Cut marts aroundBusiness processesDepartments, fed by the warehouseEntities (order, customer), grouped by department folders
Where “revenue” is defined onceOne fact table per process, shared via conformed dimensionsThe integrated enterprise warehouseOne shared model, with naming rules to stop copies
Grain of data in the martAtomic (most detailed)Denormalized to the department’s needsWide, at the entity’s own grain
Verdict on sales + finance martsWrong cutRight cutFolders yes, duplicate models no
Where it can still go wrong (our reading)Dimensions that are not truly conformedA mart that recomputes what the warehouse already settledTwo marts computing revenue in their own SQL

The synthesis: it is a fight about where the definition lives

Put the three schools next to each other and the disagreement shrinks. Kimball gets one revenue number from one fact table per business process, joined through shared conformed dimensions. Inmon gets it from a warehouse that sits above every departmental mart. dbt gets it from one shared model and a naming rule. The mart’s shape is the argument everyone has.

The mart’s definition is the thing that decides whether your numbers match. Kimball’s camp adds two points. It argues that integration comes from agreeing on common labels and measures, which it keeps in conformed dimensions, not from normalization. And it says standalone departmental marts are a struggle to integrate, which is why it advises against building them that way.

A commenter on Inmon’s post frames the real difference the same way: in a weak Kimball-style setup each mart may resolve entities and apply business rules on its own, while in an Inmon-style setup that logic runs once and the marts inherit it. That is one reader’s framing, not a survey, but it matches the drift in our example.

An uncommon insight: being dependent does not protect you. Design Tip #3 says as much: the source can be a central warehouse and the marts still drift. A dependent mart that recomputes revenue in its own SQL is an independent mart with better manners. The test is not “does it read from the warehouse?” It is “does it reuse the warehouse’s definition, or rewrite it?”

One more habit worth stealing: before building any mart, write its grain in one sentence. “One row per order line” works. If two marts cannot state their grain in a single sentence, they will eventually disagree about a total.

The schools disagree about how to cut marts, and agree that revenue must be defined once. Choose the cut your team can maintain, then protect the definition.

Do you still need marts? Semantic layers and one big table

Practitioners keep asking two versions of the same question. Where is the line between a one big table and a star schema? And if I have a semantic layer, do I need marts at all? Both are really asking whether a mart is still the right way to serve people. Sometimes the answer is no.

Competitor one: the semantic layer

A semantic layer lets you define a metric such as revenue once and refresh it everywhere it is used. In dbt’s case, the Semantic Layer is an offering that lets users centrally define metrics inside the dbt project using MetricFlow. dbt’s engineering blog explains that MetricFlow is responsible for constructing the SQL for a query, which fits dbt’s advice on its marts page to keep marts more normalized when the Semantic Layer is in use. The same FAQ adds that MetricFlow handles joins across semantic models, so you do not need to pre-join or build a table for every metric cut. The data is computed on request.

That changes what a mart should look like. dbt’s marts page gives two different recommendations. Without the Semantic Layer, denormalize heavily. With it, stay as normalized as possible so MetricFlow has the most flexibility. In practice, adding a semantic layer pulls your marts back toward Kimball-style stars. dbt’s FAQ also recommends building the Semantic Layer on top of the marts layer, so it sits above marts instead of replacing them.

There is a cost side too, and it is date-sensitive. In the FAQ (last updated October 19, 2026), dbt says the Semantic Layer is available on its Starter, Enterprise, and Enterprise+ plans and is priced by queried metrics. MetricFlow itself is source-available, so you can define metrics and query them from the command line without a plan, but without the APIs and integrations. Plans and pricing change, so check the current page before you budget for it.

There is a newer reason people want one. The semantic layer is increasingly pitched as the single source of truth that AI agents query. Holistics’ 2026 roundup of semantic-layer tools frames it that way, and “semantic layer for AI agents” appeared as a Google autocomplete suggestion in our US-English harvest on November 12, 2026. Treat that as a vendor and industry direction, not a settled outcome. If you are thinking about what AI agents expect from your data platform, the safe takeaway is that agents need stable, named metrics, whichever layer provides them.

Diagram comparing curated data marts, a dynamic semantic layer serving BI tools and AI agents, and a flattened one big table for single-use dashboards
Semantic layers sit above normalized marts to govern metrics for BI and AI agents, while a one big table flattens models for single-consumer speed.

Competitor two: one big table

Fivetran describes one big table (OBT) as a single large table housing all the data, and calls it a good fit for small teams and projects focused on one item. ml4devs adds that it flattens facts and dimensions to remove joins and maximize scan performance in columnar warehouses.

On speed, read the measurement with its conditions attached. Fivetran’s analysis (page dated August 2022) ran BI-style queries on a subset of the TPC-DS 100 dataset and compared a star schema with one denormalized table. A Hightouch write-up cites that same study for its “25% to 50% faster” figure, so the Fivetran page is the primary source. Here is what it reported:

One benchmark, with its conditions: one denormalized table vs a star schema (Fivetran)
WarehouseConfiguration testedReported speed gain for the single tableCaveat on the same page
Redshiftdc2.large single node, and dc2.8xlarge with 3 nodesAbout 25% to 30%Faster in all but one of ten test queries; materializing it took disk use from just over 30 GB to over 90 GB
SnowflakeX-Large warehouseAbout 25%Mixed: the star schema was faster on some of the simpler queries
BigQueryDefault configurationAbout 50% (average 49%)Faster in every category tested

Fivetran’s own conclusion is worth noting. It suggests staging data into something like a star schema first, then re-joining it for end-user querying. Treat the table as one analysis on one benchmark dataset and three warehouse setups. It does not tell you what will happen on your data, which is why the test belongs on your workload.

Speed and storage are measurable costs. Conformance is the one marts care about. A flat table has no shared customer or product dimension of its own, and that shared dimension is exactly what Kimball’s bus matrix exists to protect. One practitioner’s essay on DEV Community warns that building one big table per dashboard can bring back the multiple-revenue-numbers problem, because each table computes revenue its own way. Its suggestion is to build an OBT as a serving layer derived from the star schema, not instead of it. That is an opinion piece, but it points the same way as Fivetran’s conclusion above.

Here is how this article frames it, as interpretation rather than sourced fact: an OBT is a mart with exactly one consumer. It is quick to query and perfectly fine for one dashboard or one model. But if it computes revenue itself, it is an independent mart under a new name.

Quick note: data mart vs OLAP cube

Searchers also ask about cubes. In short, a cube is a way of representing and slicing data across dimensions, while a mart is a curated store of tables. They are not competitors. A mart can feed a cube, and AWS’s explainer covers both in its comparison of adjacent concepts.

A four-question test for what to build

Everything above collapses into four questions, asked in order. This is the article’s own decision framework, built from the sourced pieces.

The four-end-state decision test
1
Does a group need to query this without learning the warehouse?
Yes: build a mart, cut by business process where you can.
2
Must a metric match across more than one tool or agent?
Yes: define it in a semantic layer on top of star-shaped marts, and budget for it.
3
One consumer, one use case?
Yes: a one big table reading from your shared facts is enough.
4
None of the above?
Do not build it. A table nobody queries is maintenance without a customer.

Applied to the gear store, the sales analyst and the controller are two groups who need to query without learning the warehouse, so question one says build marts. Revenue also has to match across the finance dashboard and any agent answering “how did we do in September?”, so question two adds a semantic layer later. A single marketing dashboard that needs a flat file gets a one big table (question three), reading from the shared orders model.

Marts, semantic layers, and one big tables are not rivals. They answer different questions, and the only wrong choice is one that rewrites the definition of revenue.

Data mart misconceptions, checked against the sources

Before the practical mistakes, here are the beliefs that cause them. Five rows are documented outright. In the last row, the semantic-layer half is documented and the one-big-table half is our reading, and it is labeled as such.

Six misconceptions, checked against the sources
Common beliefWhat the sources saySource
“A data mart is defined by size: under 100 GB.”Oracle lists under 100 GB as the typical size and says nothing in its definitions limits mart size.Oracle 8i-era guide
“A mart means a departmental database.”Kimball says dimensional models shouldn’t be departmentally bound. dbt accepts departmental folders but calls duplicated departmental models an anti-pattern.Fables and Facts, dbt marts page
“If a mart reads from the warehouse, it can’t drift.”Design Tip #3 argues that multiple data flows into departmental marts produce inconsistencies whether the source is an operational system or a central warehouse. Run 2 of our dbt test shows the same effect on the example.Design Tip #3
“Marts should hold summaries for managers.”Kimball says to populate dimensional models with atomic data. Aggregates are performance-tuning complements, not replacements.Fables and Facts
“Inmon and Kimball disagree about defining revenue once.”Both want a single version of the truth. They disagree on where it lives: the integrated warehouse for Inmon, conformed dimensions and shared fact tables for Kimball.Inmon’s post, Fables and Facts
“A semantic layer or a one big table makes marts obsolete.”dbt’s FAQ recommends building its Semantic Layer on top of the marts layer, and its marts page advises more normalized marts when the Semantic Layer is used. Our reading for one big tables: Fivetran’s own conclusion suggests building a star first and re-joining it for end users, so the table sits on shared models rather than replacing them.dbt marts page, Fivetran

Most of these beliefs are old rules of thumb that outlived their hedges.

Common data mart mistakes and how to avoid them

Most failures here are not technical. They are definition failures that arrive as technical symptoms.

Building independent marts with no reconciliation plan

Each mart reads a different source and invents its own numbers.

Fix: read from shared warehouse tables, or at minimum add a reconciliation test between the marts.

Holding only summaries

Kimball’s guidance is that presummarizing presupposes the business question.

Fix: keep atomic grain in the mart. Aggregates are fine as performance helpers on top of it, which Kimball describes as complements to the atomic level, not replacements.

Naming models by department

finance_revenue and marketing_revenue signal two definitions of one concept.

Fix: name by entity or metric (revenue, tax_revenue), as dbt’s guide recommends.

Letting each BI tool carry its own copy of the logic

Revenue gets redefined in every dashboard.

Fix: define it upstream, in the model or a semantic layer, and make tools read it.

Treating “under 100 GB” as the definition

It was a typical-size remark in an Oracle 8i-era guide (circa 1999–2000), not a rule.

Fix: ask who the mart serves and where it reads from.

Computing revenue twice inside one dbt project.

The customers’ mart and the orders mart each sum their own version.

Fix: compute it once in orders and reference it.

Mistaking an ODS for a mart

Current-state operational questions and historical analytical questions need different structures.

Fix: treat the ODS as its own component, and build marts for analysis over history.

Warning
If two numbers disagree and nobody can say, line by line, why, you do not have a data mart problem yet. You have an undefined-metric problem, and adding another mart will make it worse.

Data mart case studies: what the documented record shows

Case studies with real numbers on mart architecture are scarce in public. Vendor “customer stories” report outcomes such as cost savings, not how a company cut its marts or defined its revenue. So the gear store in this guide is labeled a hypothetical worked example, and it is not presented as a case study. What follows are three documented episodes where the record is checkable, with the limits of each stated plainly.

Case 1: Kimball Group and departmental marts (2000 to 2004)

  • Challenge: architecture diagrams kept showing separate Marketing, Sales, and Finance marts, even though all three departments wanted the same core data.
  • Action: Kimball Group’s Margy Ross published Design Tip #3 in 2000 recommending that marts follow business processes, then restated the case against departmental models in Fables and Facts in 2004.
  • Outcome: no measured result was published. The documented outcome is that the argument had to be made twice, and departmental marts remain common today.
  • Lesson: a design principle needs a worked example to stick. That is why this guide uses one.

Case 2: dbt’s revenue naming rule

  • Challenge: teams building the same concept differently, for example finance_orders and marketing_orders.
  • Action: dbt’s guide calls this an anti-pattern, asks for models named by entity, and carves out one allowed exception: finance reporting revenue to the government differently, as long as it is a clearly separate concept like tax_revenue.
  • Outcome: no quantified result is published. The documented outcome is the rule itself, last updated July 2026.
  • Lesson: the goal is not to ban a second number. It is to make sure every number has a name that says what it counts.

Case 3: the “under 100 GB” rule

  • Challenge: a size rule of thumb in a vendor guide gets repeated as if it were a definition.
  • Action: the original Oracle guide hedged it, saying nothing in its definitions limits mart size.
  • Outcome: in one US-English search-results sample we took on November 13, 2026, that Oracle 8i-era guide ranked second for a mart-types query, and IBM’s explainer states an under-100-GB figure without a qualifier. That shows persistence, not cause. We could not confirm that IBM took the figure from Oracle.
  • Lesson: check what the original said, including its hedges, before repeating its number.

The decision rule to keep

If you remember one thing, make it this: define revenue once, upstream, and name every variant for what it counts.Everything else, whether Kimball’s process marts, Inmon’s departmental marts, dbt’s folders, a semantic layer, or a one big table, is a way of delivering that definition to the right people.

If you are starting a dbt project today, cut your marts by business process, as Kimball says, and let the folders follow the org chart. A folder only decides where a file lives. A definition decides whether your numbers match.

Four-question decision flowchart guiding data teams to choose between a business-process data mart, a semantic layer, a one big table, or building nothing
The four-question build test: match your storage shape to your audience, and define revenue once upstream.

One limit on all of this: the store, its systems, and its dollar figures are hypothetical, and the primary sources were re-opened on November 23, 2026. Your own warehouse will have messier edges, so run the calculator on your own month and see whether the gap breaks down as cleanly as ours did. For the broader fundamentals behind these choices, our data-engineering fundamentals guide is the natural next step.

How this guide was checked

What is sourced, what is hypothetical, what we ran
  • Sourced facts carry inline links. On November 23, 2026 we re-opened the pages behind the most load-bearing claims: Oracle’s guide, IBM’s explainer, Kimball Group’s Design Tip #3 and Fables and Facts, dbt’s marts page (last updated July 7, 2026), Fivetran’s OBT analysis, Inmon’s December 2025 post, and the Corporate Information Factory chapter on the ODS.
  • Hypothetical: the gear store, its systems, and every dollar figure in the worked example.
  • Hands-on: the dbt run (dbt-core 1.12.7, dbt-duckdb 1.11.1) and the SQL check in DuckDB. They show the example reconciles and the tests fire. They do not show how other warehouses or versions behave.
  • Our reading: sentences marked as interpretation, such as “an OBT is a mart with exactly one consumer,” the ODS contrast, and the four-question test.
  • Version-sensitive: dbt documentation and Semantic Layer packaging change, so check the current docs for your plan before you build on them.

Frequently asked questions

Tap a question to open the answer.

What is the purpose of a data mart?

A data mart gives one team, such as sales or finance, a focused set of tables it can query quickly without learning the whole warehouse. It also makes access control easier and keeps each team's questions from competing with everyone else's. Its value depends on reusing shared definitions, such as revenue, instead of inventing local ones.

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

A data warehouse is a central, integrated store covering many subjects from many sources. A data mart is a slice of that data shaped for one audience, such as one department or business process. Oracle's classic guide lists scope, subjects, sources, size, build time, and ownership as differences, but audience and data source are the ones that matter most.

Can a data mart exist without a data warehouse?

Yes. That is exactly what an independent data mart is: a standalone system built directly from operational or external sources. The trade-off is that the mart must settle its own definitions, so two independent marts can report different numbers for the same metric, as the $30,850 September revenue gap in this guide shows.

Is a data mart a database?

Usually not a separate product. A data mart is typically a curated set of tables, often a schema or a folder of models, living inside a database or warehouse you already run. In a dbt project it is commonly a folder of models in the same warehouse. It can be given its own database, but that is a deployment choice, not part of the definition.

What are the three types of data marts?

Dependent marts draw data from an existing central data warehouse. Independent marts are standalone systems built straight from operational or external sources. Hybrid marts do both, for example when a new product group joins before its data reaches the warehouse. The categories are based primarily on where the mart gets its data.

When should you build a data mart?

Build one when a group repeatedly asks cross-cutting questions on the same metrics, when it needs performance isolation or tighter access control, or when a BI tool needs a clean, stable feed. Before building, ask whether a group needs to query without learning the warehouse. If not, a one big table or a semantic layer may serve better.

Are data marts dead?

No, but their role has narrowed. dbt's Semantic Layer FAQ recommends building the semantic layer on top of the marts layer, so it sits above marts instead of replacing them. A one big table can serve a single use case, and Fivetran's analysis suggests building a star first. The lasting lesson is to define each metric once and name every variant honestly.

How do you create a data mart in Snowflake, SQL Server, or Power BI?

The steps are the same on any platform. Name the audience and their questions, pick the business process underneath, and fix the grain. Build tables or views from shared warehouse data, define shared metrics once, name variants honestly, grant access to the audience, and connect the BI tool. Add reconciliation tests so the mart stays consistent with the warehouse.

How can I check that two data marts agree on a metric?

Compare the same metric, month by month, from both marts and return any row where the values differ by more than a tolerance you choose. In this guide's worked example, a ten-line dbt singular test passed when the customers mart reused the shared revenue column. It failed with a gap of 12,400 dollars when the mart recomputed revenue without gift cards. Run the same idea on your own metric and grain.

Is one big table faster than a star schema?

Sometimes. Fivetran's analysis on a TPC-DS subset reported single-table query-time gains of about 25% to 30% on Redshift, about 25% on Snowflake, and about 50% on BigQuery. Snowflake results were mixed, and materializing the table roughly tripled disk use on Redshift. Results depend on the warehouse, queries, and data, so test your own workload.

About The Author

A Gadallh

Ahmed Gadallah is the Founder and Editor of Vertex Frontier, where he publishes research-driven articles on AI, data science, cloud computing, cybersecurity, software engineering, and emerging technologies, with a focus on technical accuracy, clarity, and practical insights.

View all articles by A Gadallh →

Was this article helpful?

5 Comments

Comments are closed.

šŸ  Home šŸ”– Saved šŸ“§ Join Us šŸ“¤ Share ā¬†ļø To Top
Read Next Postgres CDC in Production: Handling Failover, Retries, and Duplicates