Snowflake Schema in Data Warehouse Model
Last Updated :
10 Jun, 2023
Pre-Requisite: Data Warehouse Model
The snowflake schema is a variant of the star schema. Here, the centralized fact table is connected to multiple dimensions. In the snowflake schema, dimensions are present in a normalized form in multiple related tables. The snowflake structure materialized when the dimensions of a star schema are detailed and highly structured, having several levels of relationship, and the child tables have multiple parent tables. The snowflake effect affects only the dimension tables and does not affect the fact tables.
A snowflake schema is a type of data modeling technique used in data warehousing to represent data in a structured way that is optimized for querying large amounts of data efficiently. In a snowflake schema, the dimension tables are normalized into multiple related tables, creating a hierarchical or “snowflake” structure.
In a snowflake schema, the fact table is still located at the center of the schema, surrounded by the dimension tables. However, each dimension table is further broken down into multiple related tables, creating a hierarchical structure that resembles a snowflake.
For Example, in a sales data warehouse, the product dimension table might be normalized into multiple related tables, such as product category, product subcategory, and product details. Each of these tables would be related to the product dimension table through a foreign key relationship.
Example:

Snowflake Schema
The Employee dimension table now contains the attributes: EmployeeID, EmployeeName, DepartmentID, Region, and Territory. The DepartmentID attribute links with the Employee table with the Department dimension table. The Department dimension is used to provide detail about each department, such as the Name and Location of the department. The Customer dimension table now contains the attributes: CustomerID, CustomerName, Address, and CityID. The CityID attributes link the Customer dimension table with the City dimension table. The City dimension table has details about each city such as city name, Zipcode, State, and Country.
What is Snowflaking?
The snowflake design is the result of further expansion and normalization of the dimension table. In other words, a dimension table is said to be snowflaked if the low-cardinality attribute of the dimensions has been divided into separate normalized tables. These tables are then joined to the original dimension table with referential constraints (foreign key constrain).
Generally, snowflaking is not recommended in the dimension table, as it hampers the understandability and performance of the dimension model as more tables would be required to be joined to satisfy the queries.
Difference Between Snowflake and Star Schema
The main difference between star schema and snowflake schema is that the dimension table of the snowflake schema is maintained in the normalized form to reduce redundancy. The advantage here is that such tables (normalized) are easy to maintain and save storage space. However, it also means that more joins will be needed to execute the query. This will adversely impact system performance.
However, the snowflake schema can also be more complex to query than a star schema because it requires more table joins. This can result in slower query response times and higher resource usage in the database. Additionally, the snowflake schema can be more difficult to understand and maintain because of the increased complexity of the schema design.
The decision to use a snowflake schema versus a star schema in a data warehousing project will depend on the specific requirements of the project and the trade-offs between query performance, schema complexity, and data integrity.
Characteristics of Snowflake Schema
- The snowflake schema uses small disk space.
- It is easy to implement the dimension that is added to the schema.
- There are multiple tables, so performance is reduced.
- The dimension table consists of two or more sets of attributes that define information at different grains.
- The sets of attributes of the same dimension table are populated by different source systems.
Features of the Snowflake Schema
- Normalization: The snowflake schema is a normalized design, which means that data is organized into multiple related tables. This reduces data redundancy and improves data consistency.
- Hierarchical Structure: The snowflake schema has a hierarchical structure that is organized around a central fact table. The fact table contains the measures or metrics of interest, and the dimension tables contain the attributes that provide context to the measures.
- Multiple Levels: The snowflake schema can have multiple levels of dimension tables, each related to the central fact table. This allows for more granular analysis of data and enables users to drill down into specific subsets of data.
- Joins: The snowflake schema typically requires more complex SQL queries that involve multiple tables joins. This can impact performance, especially when dealing with large data sets.
- Scalability: The snowflake schema is scalable and can handle large volumes of data. However, the complexity of the schema can make it difficult to manage and maintain.
Advantages of Snowflake Schema
- It provides structured data which reduces the problem of data integrity.
- It uses small disk space because data are highly structured.
Disadvantages of Snowflake Schema
- Snowflaking reduces space consumed by dimension tables but compared with the entire data warehouse the saving is usually insignificant.
- Avoid snowflaking or normalization of a dimension table, unless required and appropriate.
- Do not snowflake hierarchies of dimension table into separate tables. Hierarchies should belong to the dimension table only and should never be snowflakes.
- Multiple hierarchies that can belong to the same dimension have been designed at the lowest possible detail.
Similar Reads
Snowflake Schema in Data Warehouse Model
Pre-Requisite: Data Warehouse Model The snowflake schema is a variant of the star schema. Here, the centralized fact table is connected to multiple dimensions. In the snowflake schema, dimensions are present in a normalized form in multiple related tables. The snowflake structure materialized when t
5 min read
Attributes of Data Warehouse
A data warehouse is meant for only query and analysis rather than transaction processing. The data warehouse is essentially subject-oriented, non-volatile, integrated, time-variant, and consists of historical data stored over long periods of time. A blueprint of BI and data mining algorithms. Data m
3 min read
Google big query vs Redshift vs snowflakes
Overview :Data warehouse architecture is rapidly evolving as the market for cloud storage grows. Because of their improved connectivity, integration, and low cost of ownership, businesses are migrating to cloud-based data-warehouses such as big query, redshift, or snowflake. Since many users who are
9 min read
SQL software and query optimization tools
Introduction : SQL stands for Structured Query Language. SQL is a non-procedural language, so the Optimizer is free to merge, reorganize and process in any order. It is based on statistics collected about accessed data. It is very useful to perform query and to store and manage data in RDBMS. SQL is
4 min read
Star Schema vs Snowflake Schema in Data Engineering
In this article, we are going to explore the difference between the Star Schema and the Snowflake Schema in data engineering In the field of data warehousing and business intelligence, organizing and structuring large volumes of data efficiently is crucial for effective data analysis and decision-ma
5 min read
Types of Keys in Data Warehouse Schema
Types of Schema are as following below as follows: Star Schema - In figuring, the star schema is the least complex style of information store composition and is the methodology most broadly used to create information distribution centers. The star schema of at least one actuality table referencing a
3 min read
Difference between Star Schema and Snowflake Schema
Star Schema and Snowflake Schema are data warehouse design approaches. Star Schema uses a central fact table connected to dimension tables, forming a star-like structure. It's simpler and faster for queries. Snowflake Schema normalizes dimension tables into multiple related tables, resembling a snow
3 min read
Difference between Snowflake Schema and Fact Constellation Schema
Snowflake Schema: Snowflake Schema is a type of multidimensional model. It is used for data warehouse. In snowflake schema contains the fact table, dimension tables and one or more than tables for each dimension table. Snowflake schema is a normalized form of star schema which reduce the redundancy
4 min read
Dimensional Data Modeling
Popular Schema - Star Schema, Snow Flake Schema Dimensional Data Modeling is one of the data modeling techniques used in data warehouse design. The concept of Dimensional Modeling was developed by Ralph Kimball which is comprised of facts and dimension tables. Since the main goal of this modeling i
5 min read
Snowflake Architecture
The architecture of Snowflake is a combination of standard shared-disk and shared-nothing database technologies. Snowflake, like shared-nothing architectures, processes queries utilizing MPP (massively parallel processing) compute clusters, in which each node maintains a fraction of the full data se
6 min read