Fact Table vs Dimension Table Comparison Table

 

Fact Table vs Dimension Table Comparison Table

CharacteristicsFact TableDimension Table
Basic DefinitionIt contains measurements, facts or metrics of the attributes.It is the companion table that contains attributes using which fact table deduce the facts.
DesignIt is defined by data grain.It is descriptive, complete and wordy.
TaskIt contains measures and is used for analysis and decision making.It contains information about a business and its process.
Type of DataIt contains data in both numeric as well as textual format.It contains data in only textual format.
KeyIt has a primary key for each dimension which is acts as a foreign key in the dimension table.It has a foreign key associated with the primary key of the fact table.
StorageIt stores the filter domain and reports labels in dimension tables.It stores the detailed atomic data into dimensional structures.
HierarchyIt does not have a hierarchy.It contains a hierarchy.
AttributesIt has less attributesMore attributes
RecordsMore recordsLess records.
Table GrowthThe table grows vertically.The table grows horizontally.
Creation TimeA fact table is created after dimension tables are created.The dimension table needs to be created first.
Schema StructureThere is less number of fact tables in a schema.There is a number of dimension tables in a schema.

Post a Comment

0 Comments