Share via


Star Schema

Overview

In SQL Server Analysis Services (SSAS), a star schema describes a common data model for relational data warehouses. In a star schema, there are two types of tables: [[articles:Fact (OLAP)|fact]] tables and [[articles:Dimension|dimension]] tables. In general, a relational data warehouse is a historical repository of a business's transactions. Facts represent those transactions, and dimensions describe the facts. Facts are stored as rows in a fact table and dimension members are stored as rows in dimension tables; some columns in the fact table are foreign keys that reference rows in dimension tables. When diagrammed, the resulting schema resembles a star with the fact table at center, and the dimension tables surrounding the fact table.

Star schemata differ from another popular data warehouse model, the [[articles:Snowflake Schema]] in their level of normalization. A popular misconception is that star schemata are not normalized or are "denormalized." Star schemata are normalized, typically to second normal form (2NF); specifically, the dimension tables can contain transitive dependencies, so that some columns of the table are functionally dependent on nonkey columns of the table. Reducing the level of normalization eliminates joins when querying the database, and this can enhance query performance, particularly since relational data warehouses tend to contain large amounts of data.


See Also


Other Languages

This article is also available in the following languages:

Brazilian Portuguese (pt-BR)