Star Schema in Data Warehouse modeling
Last Updated :
12 Feb, 2025
A star schema is a type of data modeling technique used in data warehousing to represent data in a structured and intuitive way. In a star schema, data is organized into a central fact table that contains the measures of interest, surrounded by dimension tables that describe the attributes of the measures.

Star Schema
- The fact table in a star schema contains the measures or metrics that are of interest to the user or organization. For example, in a sales data warehouse, the fact table might contain sales revenue, units sold, and profit margins. Each record in the fact table represents a specific event or transaction, such as a sale or order.
- The dimension tables in a star schema contain the descriptive attributes of the measures in the fact table. These attributes are used to slice and dice the data in the fact table, allowing users to analyze the data from different perspectives. For example, in a sales data warehouse, the dimension tables might include product, customer, time, and location.
- Each dimension table is joined to the fact table through a foreign key relationship. This allows users to query the data in the fact table using attributes from the dimension tables. For example, a user might want to see sales revenue by product category, or by region and time period.
- It is said to be star as its physical model resembles to the star shape having a fact table at its center and the dimension tables at its peripheral representing the starâs points. It is the fundamental schema among the data mart schema and it is simplest.
- This schema is widely used to develop or build a data warehouse and dimensional data marts. It includes one or more fact tables indexing any number of dimensional tables. The star schema is a necessary cause of the snowflake schema. It is also efficient for handling basic queries.Â
- Often, A Star Schema having multiple dimensions is termed as Centipede Schema.
- It is easy to handle a star schema which have dimensions of few attributes.Â
Example of Star Schema
In the given demonstration, SALES is a fact table having attributes i.e. (Product ID, Order ID, Customer ID, Employer ID, Total, Quantity, Discount) which references to the dimension tables. Employee dimension table contains the attributes: Emp ID, Emp Name, Title, Department and Region. Product dimension table contains the attributes: Product ID, Product Name, Product Category, Unit Price. Customer dimension table contains the attributes: Customer ID, Customer Name, Address, City, Zip. Time dimension table contains the attributes: Order ID, Order Date, Year, Quarter, Month.Â

Advantages of Star Schema
- Simpler Queries
Join logic of star schema is quite cinch in comparison to other join logic which are needed to fetch data from a transactional schema that is highly normalized.
- Simplified Business Reporting Logic
In comparison to a transactional schema that is highly normalized, the star schema makes simpler common business reporting logic, such as of reporting and period-over-period.
- Feeding Cubes
Star schema is widely used by all OLAP systems to design OLAP cubes efficiently. In fact, major OLAP systems deliver a ROLAP mode of operation which can use a star schema as a source without designing a cube structure.
Disadvantages of Star Schema
- Data integrity is not enforced well since in a highly de-normalized schema state.
- Not flexible in terms if analytical needs as a normalized data model.
- Star schemas don’t reinforce many-to-many relationships within business entities – at least not frequently.
Features of Star Schema
- Central fact table: The star schema revolves around a central fact table that contains the numerical data being analyzed. This table contains foreign keys to link to dimension tables.
- Dimension tables: Dimension tables are tables that contain descriptive attributes about the data being analyzed. These attributes provide context to the numerical data in the fact table. Each dimension table is linked to the fact table through a foreign key.
- Denormalized structure: A star schema is denormalized, which means that redundancy is allowed in the schema design to improve query performance. This is because it is easier and faster to join a small number of tables than a large number of tables.
- Simple queries: Star schema is designed to make queries simple and fast. Queries can be written in a straightforward manner by joining the fact table with the appropriate dimension tables.
- Aggregated data: The numerical data in the fact table is usually aggregated at different levels of granularity, such as daily, weekly, or monthly. This allows for analysis at different levels of detail.
- Fast performance: Star schema is designed for fast query performance. This is because the schema is denormalized and data is pre-aggregated, making queries faster and more efficient.
- Easy to understand: The star schema is easy to understand and interpret, even for non-technical users. This is because the schema is designed to provide context to the numerical data through the use of dimension tables.
Read about Differences between Star and Snowflake Schema
Star Schema in Data Warehouse modeling – FAQs
What are the 3 types of data warehouse schema?
The three types of data warehouse schema are Star Schema (a fact table linked to dimension tables), Snowflake Schema (normalized dimensions with sub-tables), and Galaxy Schema (multiple fact tables sharing dimensions).
What are the two main components of a star schema?
The two main components of a star schema are the fact table (stores measurable business data) and dimension tables (store descriptive attributes for analysis).
Why is it called a star schema?
It is called a star schema because its structure resembles a star, with a central fact table connected to multiple dimension tables radiating outward.
Similar Reads
Star Schema in Data Warehouse modeling
A star schema is a type of data modeling technique used in data warehousing to represent data in a structured and intuitive way. In a star schema, data is organized into a central fact table that contains the measures of interest, surrounded by dimension tables that describe the attributes of the me
5 min read
Snowflake Schema in Data Warehouse Model
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. It is a variant of the star schema. Here, the centralized fact table is connected to multiple dimensions. In the sn
5 min read
Designing the Star Schema in Data Warehousing
Star schema is the fundamental schema among the data mart schema and it is simplest. This schema is widely used to develop or build a data warehouse and dimensional data marts. It includes one or more fact tables indexing any number of dimensional tables. The star schema is a necessary cause of the
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
Data Modeling Techniques For Data Warehouse
Data modeling is the process of designing a visual representation of a system or database to establish how data will be stored, accessed, and managed. In the context of a data warehouse, data modeling involves defining how different data elements interact and how they are organized for efficient ret
5 min read
Testing in Data warehouse
Data Warehouse stores huge amount of data, which is typically collected from multiple heterogeneous source like files, DBMS, etc to produce statistical result that help in decision making. Testing is very important for data warehouse systems for data validation and to make them work correctly and ef
2 min read
ETL Process in Data Warehouse
INTRODUCTION:ETL stands for Extract, Transform, Load and it is a process used in data warehousing to extract data from various sources, transform it into a format suitable for loading into a data warehouse, and then load it into the warehouse. The process of ETL can be broken down into the following
5 min read
Data Loading in Data warehouse
The data warehouse is structured by the integration of data from different sources. Several factors separate the data warehouse from the operational database. Since the two systems provide vastly different functionality and require different types of data, it is necessary to keep the data database s
5 min read
Data Mining: Data Warehouse Process
INTRODUCTION: Data warehousing and data mining are closely related processes that are used to extract valuable insights from large amounts of data. The data warehouse process is a multi-step process that involves the following steps: Data Extraction: The first step in the data warehouse process is t
8 min read
Top 10 Data Warehouse Tools in 2024
Ever wondered how a large organization deals with massive amounts of data? The answer lies in data warehouse tools. Data warehouses are digital warehouses that store large amounts of data in an organized manner and support business intelligence activities like analytics. With a data warehouse, busin
8 min read