Explain why a company combines historical data in a warehouse instead of asking every application for a separate report.
First, understand the meaning
A data warehouse is a system that collects data from different sources, organizes it in a consistent way and keeps it available for analysis and reporting. Its main purpose is to help people answer business questions using current and historical information.
Let us make that concrete. A shop has one application for orders, another for payments and another for returns. The owner asks, “How much money did we keep after refunds this month?” No single application has the complete answer. A warehouse brings the relevant records together so that question can be answered.
Picture it in everyday life
Imagine a school office collecting attendance, exam results and fee records from separate departments. The office puts them into a common reporting system. The warehouse plays a similar role for a business: it combines information so people can see the whole picture.
Why do we need this?
An order system is busy recording new orders. A payment system is busy accepting payments. They are designed to perform their own jobs, so their records may use different names, identifiers or date formats.
A warehouse gives analysts a consistent place to study those records. An analyst is simply a person using data to answer questions. Instead of manually combining three spreadsheets every month, the team builds a repeatable process that prepares the data for reports.
Let us follow it step by step
Here is a simple monthly-sales journey. Each step solves a different problem.
- Collect: bring order, payment and refund records from their source applications.
- Prepare: make dates and currencies consistent, identify duplicates and connect records using an agreed order ID.
- Store: keep the prepared records, including the history needed for comparisons.
- Analyze: calculate totals and compare months or products.
- Present: show the answer in a report or dashboard. The dashboard displays the answer; it is not the warehouse itself.
Worked example: why one source is not enough
Suppose the shop has two successfully paid orders. One customer later receives a partial refund. For this example, we define net receipts as successful payments minus refunds. We assume one currency and ignore tax and fees.
| Order | Successful payment | Refund | Net receipts |
|---|---|---|---|
| 101 | 100 | 20 | 80 |
| 102 | 50 | 0 | 50 |
| Total | 150 | 20 | 130 |
Four useful characteristics, in simple words
You may see these four terms in books or interviews. Learn the meaning behind the label, rather than only memorizing the words.
| Term | What it means | Example |
|---|---|---|
| Subject-oriented | Organized around a business subject | Sales records from several systems |
| Integrated | Different sources are made consistent | Customer IDs and currencies are reconciled |
| Time-variant | History and dates matter | Compare January with February |
| Non-volatile | History is kept deliberately, not constantly overwritten by daily transactions | Keep past sales; correct errors through controlled changes |
Before you move on
A warehouse helps you study the business; source applications carry out its daily work. Remember the journey: collect, prepare, store, analyze and report. A warehouse still needs correct definitions and quality checks—central storage alone cannot decide what “revenue” means.
What is a data warehouse?
Collect
The order, payment and returns applications each hold one part of the story.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Collect
The order, payment and returns applications each hold one part of the story.
- Prepare
Connect records using the order ID and check currencies, dates and duplicates.
- Calculate
In the example, payments of 150 minus refunds of 20 give net receipts of 130.
- Report
Show the answer and the period it covers. A report based on yesterday’s load does not include today’s new payments.
Important terms
- Data warehouse
- A system that combines and organizes data for analysis and reporting.
- Historical data
- Records about earlier periods, kept so we can compare or explain what happened.
- Pipeline
- A repeatable sequence that moves and prepares data.
- Grain
- What one row represents, such as one order or one order item.
A practical example
Northstar Shop joins orders to successful payments and refunds using order_id. It groups the resulting amounts by month. Before joining, the team checks whether multiple payment attempts could duplicate an order.
Production tip
Write down the grain, freshness target and owner of a reporting table. These decisions matter before choosing a chart.
Common mistake
Loading files does not automatically make their meaning consistent. Currency, time zones and duplicate records still need explicit rules.
Check your understanding
Practice challenge
List the sources needed to report net sales by product, and name one data-quality check.
Compare your reasoning
Use order items, successful payments and refunds, plus product identifiers. Check for duplicate order-item keys and agree how order-level refunds are allocated.
What to remember
A warehouse helps you study the business; source applications carry out its daily work. Remember the journey: collect, prepare, store, analyze and report. A warehouse still needs correct definitions and quality checks—central storage alone cannot decide what “revenue” means.
Revisit this concept in Visual Labs →