Difference between Fact Table and Dimension Table (original) (raw)

Last Updated : 18 Jul, 2025

In data warehousing, **fact tables and **dimension tables are key components of **star or **snowflake schemas. Fact tables store **numeric data like sales or order amounts and include **foreign keys linking to dimension tables. Dimension tables provide **context with descriptive details like product names or customer demographics. The main difference between Fact or Reality table and the Dimension table is that dimension table contains attributes on that measures are taken actually table.

Fact and Dimension Table

Difference Between Fact Table and Dimension Table

Fact Table Dimension Table
Fact table contains the measuring of the attributes of a dimension table. Dimension table contains the attributes on that truth table calculates the metric.
In fact table, There is less attributes than dimension table. While in dimension table, There is more attributes than fact table.
In fact table, There is more records than dimension table. While in dimension table, There is less records than fact table.
Fact table forms a vertical table. While dimension table forms a horizontal table.
The attribute format of fact table is in numerical format and text format. While the attribute format of dimension table is in text format.
It comes after dimension table. While it comes before fact table.
The number of fact table is less than dimension table in a schema. While the number of dimension is more than fact table in a schema.
It is used for analysis purpose and decision making. While the main task of dimension table is to store the information about a business and its process.

Also let us see what Aggregate Fact Tables are,

Aggregate Fact Tables

**Example:

Example of Aggrigate Fact table

EXAMPLE

Limitations of Aggregate Fact Tables