Data Warehousing: How Different Records Become One Useful Report
A retailer's checkout system can tell you what sold this morning. Explaining why profit fell over the past two years may require sales, refunds, delivery costs, and supplier records from several different systems.
A data warehouse brings records together in a form suited to that kind of analysis. Data warehousing is the work of collecting, preparing, storing, and maintaining those records so people can ask useful questions across them.
A warehouse is still a database
The distinction is its job. An operational database supports daily work, such as recording a purchase or changing a shipping address; a warehouse is designed for queries that examine groups of records, often across a longer history.
A query is simply a request for information from a database.
Oracle's warehouse overview describes systems built for analysis and reporting, with data drawn from multiple sources. Separating this work can keep a demanding report from competing directly with the system processing today's orders.
That doesn't mean an ordinary database can't produce reports, or that warehouse records can never be corrected. The design reflects the workload the system is meant to handle.
Bringing records together takes translation
Copying several files into one place isn't enough. Two systems may use different customer numbers, date formats, or meanings for the same field.
- Keep every photo and file on a box you own, and reach them from anywhere.
- Let backups run on their own so one dead laptop doesn't take your files with it.
- Add two drives and a failed disk no longer means lost files.
Suppose one sales system counts an order when it's placed, while another counts it when it ships. Adding their daily totals without resolving that difference can produce a neat-looking number with a confused meaning.
One common preparation process is ETL, short for extract, transform, and load:
- Extract: collect the needed records from their source systems.
- Transform: clean and reshape them, such as matching customer identifiers or converting values into agreed units.
- Load: place the prepared records in the warehouse.
Amazon Web Services explains ETL as a way to combine and prepare data for analysis. A related approach, ELT, loads the records before transforming them inside the destination system.
Neither acronym promises correct results. Someone still has to decide what counts as a sale, how refunds affect it, and which records should be rejected or investigated.
Yesterday's complete report may beat today's partial one
Warehouses aren't all updated on the same schedule. Some receive periodic batches; others accept a steady stream of changes and can provide information closer to the present.
The right timing depends on the question. Last quarter's comparison and an urgent check of current stock have different needs.
A report should make its data's freshness clear, including when the latest successful update occurred. If one source is late, the warehouse may contain a mixture of new and older information even though the report itself was generated seconds ago.
What Is a Data Warehouse?
Combined records still need separate permissions
Bringing sales, staffing, and customer records into one system doesn't mean every analyst should see all of them. Permissions need to match the work a person is allowed to do.
Some warehouse tools can limit access to particular rows or columns in a table. A row represents a record; a column holds a kind of information, such as a customer's region or email address.
Google BigQuery's access controls, for example, can restrict which records a user sees and work alongside controls for specific columns. A regional manager could receive access to their region's records without receiving every customer's details.
Permissions also need attention when results are exported or shared. A restricted warehouse isn't much help if an unrestricted copy of its report contains the same sensitive information.
Before relying on a warehouse report, ask what its figures mean, which sources fed them, and how recently those sources arrived. The answers explain far more than the fact that all the numbers came from one system.
Data Administration: Making Your Data Mean the Same Thing

Data Aggregation: How Useful Summaries Can Mislead You

Data Mining: How Patterns Become Useful—and Misleading

QUOTE:
"Amateurs hack systems, professionals hack people."
