What is a star schema and how does it differ from a snowflake schema?

Instruction: Compare and contrast star and snowflake schemas in the context of data warehouse design.

Context: This question checks the candidate's understanding of common data warehousing schema designs and their ability to differentiate between them.

Updated

Official answer

A star schema places a fact table at a declared business grain and connects it directly to dimensions. In a sales example, the product dimension can contain product name, category and department together.

A snowflake design normalizes some dimension attributes into related tables. The product dimension might reference a category table, which in turn references a department table. That can centralize shared hierarchy data, but navigating the hierarchy requires additional relationships or joins.

The choice concerns the structure of descriptive data, not whether the fact table has a valid grain. Both designs still need correct keys, relationship cardinality and history rules. Snowflaking does not automatically reduce all storage costs, and a star is not guaranteed to execute every query faster.

Choose based on the analytical tool, hierarchy maintenance, history needs, user comprehension and measured workload. For a straightforward reporting model, a flattened dimension is often convenient. For a shared managed hierarchy, normalization may help, provided the semantic model remains understandable.

Source

Microsoft: star schema and snowflake dimensions.

Related Questions