Blog

Types of tables in DWH: Facts and Dimensions

Tables in DWH

Dimensions:

  • Dimensions are attributes about facts.
  • They store textual description about business.
  • Dimensions are denormalized due to one to many relationship

Ex: Store, Product, Employee, Customers

Facts:

Facts are the actual transactions or values being analyzed

  • They contain composite primary key where each attribute of primary key is foreign key to the dimension tables
  • A fact table contains the facts at the lowest level granularity

FACT:

Prod Id, Cust Id, Sales Date are Dimension Keys.

Quantity Sold, Amount Sold are Fact Measures/KPI’s

KPI stands for Key Performance Indicators


RELATED COURSES

Get Updates on Tech posts, Interview & Certification questions and training schedules