Fact Table (original) (raw)

Last Updated : 1 Jun, 2026

A Fact Table is the central table in a data warehouse that stores quantitative business data and connects to dimension tables using foreign keys. Each row represents a business event such as a sale, order, or shipment.

Star Schema of Fact and Dimension Tables

The image illustrates a Star Schema used in a Data Warehouse for storing and analyzing sales data. In this schema, the fact table is placed at the center and is connected to multiple dimension tables.

dimcustomer

Example Fact table

1. Fact Table – factSales

The factSales table is the central table in the star schema that stores sales transaction data and measurable business information.

**It contains:

2. Dimension Tables

Dimension tables store descriptive information related to the data in the fact table and provide context for analysis.

3. Relationship in the Schema

The fact table is connected to all dimension tables using foreign keys, while each dimension table contains a primary key (PK). Together, these tables form a Star Schema structure with the fact table at the center.

**Main Purpose of the Schema

Types of Fact Tables

There are several types of fact tables, each serving different purposes in a data warehouse:

Structure of a Fact Table

A fact table is the central table in a data warehouse that stores measurable business data along with foreign keys connected to dimension tables.

Main Components of a Fact Table

**Example:

CustomerKey ProductKey DateKey Quantity SalesAmount
101 501 20260101 2 500
102 502 20260102 1 300

Types of Facts

There are three types of facts in a fact table, classified based on whether the stored measures can be aggregated across different dimensions.

Type Meaning Example
Additive Can be added across all dimensions SalesAmount, UnitsSold
Semi-Additive Addable across some dimensions Account Balance (not across time)
Non-Additive Cannot be summed Ratios, Percentages