“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.”
Entenda as decisões por trás dele.
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.
Dúvidas comuns
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.