“A retail sales snowflake schema: a FactSale table linked to Date, Product, and Store dimensions; normalize Product through Subcategory to Category and Store through City to Region.”
看懂背後的決策。
Store one row for each sale line.
Keep category data outside the product dimension.
Normalize stores through city and region.
Use this when product and store hierarchies are shared and need separate maintenance.
常見問題
What makes this a snowflake schema?
Its dimensions are normalized into hierarchy tables, such as Product to Subcategory to Category.
What is the fact table grain?
Each FactSale row represents one recorded sale line with its measures.
Why normalize store geography?
City and region can be maintained once and reused by every store.