Star Schema

The star schema is the simplest and most common data warehouse schema. It's characterized by a central fact table surrounded by several dimension tables. This structure resembles a star, hence the name.

Structure of a Star Schema

A star schema consists of two main types of tables:

Star Schema Diagram

A typical star schema structure.

Key Characteristics

Example

Consider a retail data warehouse. A star schema for sales might look like this:

A query to find the total sales amount for a specific product category in a given year might involve joining the SalesFact table with ProductDimension and DateDimension. Because the dimension tables are denormalized, this typically requires only two joins.

Advantages of Star Schema

Disadvantages of Star Schema

Tip:

When designing dimension tables, aim to include all relevant descriptive attributes that a business user might need to slice and dice the data. This denormalization is key to the star schema's performance benefits.

The star schema is an excellent choice for many data warehousing scenarios, especially when the focus is on providing fast and intuitive access to business performance metrics.