Warehouse layers
Data Warehousing · 12 questions
Short notes
Key idea
Warehouses are built in layers so raw data is kept, cleaning happens in one place, and reports read tidy models. Common names: raw/bronze → staging/silver → marts/gold.
Syntax
- Raw (bronze): an exact copy of the source, append-only, never edited. Lets you replay.
- Staging (silver): cleaned, typed, renamed, deduplicated; one model per source table.
- Marts (gold): business-ready facts and dimensions, built for a team or a question.
- Each layer reads only from the one before it.
Example
raw.orders holds JSON as it arrived. stg_orders casts the amount to a number, converts timestamps to IST, removes test orders and duplicates. fct_orders joins staging tables into the star schema that dashboards use.
Traps
- Cleaning inside dashboards: every report fixes data differently.
- Editing raw data removes your ability to rebuild after a bug.
- Marts reading straight from raw skip the shared cleaning.
- Too many layers add cost and delay without benefit; three is usually enough.
Want the full lesson with step-by-step examples, a project and a certificate? Data Warehousing course, ₹120 →
Questions
5 free questions- Question 1easy
Why keep the raw layer as an untouched copy of the source?
- Question 2medium
Which belongs in the staging layer?
- Question 3easy
In the medallion architecture, which layer holds business-ready, aggregated tables?
- Question 4medium
Finance and marketing show different revenue totals. What's the likely cause?
- Question 5easy
What's the main benefit of building a warehouse in layers?
Warehouse layers
Warehouse layers
Warehouse layers
Warehouse layers
Warehouse layers
7 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.