Star Schema in Data Warehouse modeling (original) (raw)

Last Updated : 24 Nov, 2025

A Star Schema organizes data into a central fact table linked to multiple dimension tables, forming a layout that visually resembles a star. This structure makes analytical queries fast, simple, and efficient making it one of the most commonly used data modeling techniques in data warehousing.

Components of Star Schema

fact-table

Star Schema

**1. Fact Table: The fact table sits at the center of the schema and stores the measurable, quantitative data used for analysis. Examples include:

Each record in a fact table represents a business event (e.g., a sales transaction).

**2. Dimension Tables: Dimension tables surround the fact table and contain descriptive attributes that add context to the facts. Common dimensions include:

These tables allow users to slice, dice, filter, and group the fact data for analysis (e.g., sales by region, by month, by product category).

Features of Star Schema

Star Schema Example (Sales Data Warehouse)

To demonstrate how a star schema works, consider a Sales Data Warehouse where each sales transaction is stored in a central fact table and is analyzed through surrounding dimension tables. This model supports fast, flexible analysis across products, customers, time, and employees.

star-schema

Star Schema Diagram for Sales Data Warehouse

Advantages of Star Schema

Disadvantages of Star Schema