0% found this document useful (0 votes)
339 views1 page

Star Schema

The star schema design in a data warehouse consists of a central fact table connected to surrounding dimension tables that provide context about measures in the fact table. A fact table contains all measures and foreign keys to dimension tables, which each represent a single dimension like time, store, or product. All measures in a fact table have the same level of granularity and relate to all dimensions the fact table connects to. A star schema can be simple with one fact table or complex with multiple fact tables.

Uploaded by

Deepanshu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
339 views1 page

Star Schema

The star schema design in a data warehouse consists of a central fact table connected to surrounding dimension tables that provide context about measures in the fact table. A fact table contains all measures and foreign keys to dimension tables, which each represent a single dimension like time, store, or product. All measures in a fact table have the same level of granularity and relate to all dimensions the fact table connects to. A star schema can be simple with one fact table or complex with multiple fact tables.

Uploaded by

Deepanshu
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Star Schema – DWH concept

July 10, 2009 by Deepanshu Mehta

In the star schema design, a single object (the fact table) sits in the middle and is radially
connected to other surrounding objects (dimension lookup tables) like a star. Each
dimension is represented as a single table. The primary key in each dimension table is
related to a forieng key in the fact table.

Sample star schema

All measures in the fact table are related to all the dimensions that fact table is related to.
In other words, they all have the same level of granularity.

A star schema can be simple or complex. A simple star consists of one fact table; a
complex star can have more than one fact table.

Let’s look at an example: Assume our data warehouse keeps store sales data, and the
different dimensions are time, store, product, and customer. In this case, the figure on the
left repesents our star schema. The lines between two tables indicate that there is a
primary key / foreign key relationship between the two tables. Note that different
dimensions are not related to one another.

You might also like