Multi-dimensional Data Warehouse Schema


Dimension Tables = A table contains information about an object such as customers, products, sellers, date_time. As its nature, each set of data has more than one dimension.
Fact Tables = A table contains a measurement data such as orders; thus, an order combines information of customer, product, seller, date_time, branch, etc. The fact data will be used for measurement in that data mart or data warehouse. It can be one or more fact tables in a data warehouse.
Multi-dimensional = more than one dimension tables.

Thus, Multi-dimensional Schemas have 3 types as follow:

  • Star-Schema = The fact table contains FK of dimension tables while each dimension table contain complete attributes of its dimension (has no join to other tables)
  • Snow-Flake Schema = The fact table contains FK of dimension tables while the dimension tables itself might contain FK of other dimension tables as a hierarchy.
  • Galaxy Schema or Family of star Schema = There're more than one fact tables which share same dimension tables (connected stars)
* Slowly changing dimension = The dimension in which their value can be changed slowly by time i.e. based salary of junior sellers, customer's address, employee's name, etc.

* Low cardinality column = An attribute column that has less different values.


For more details:
(Eng) https://www.guru99.com/star-snowflake-data-warehousing.html
(Thai) https://www.9experttraining.com/articles/รู้จักกับโครงสร้างข้อมูล-แบบ-dimensional-model

How to Data Modeling
https://www.guru99.com/data-modelling-conceptual-logical.html

Comments

Popular posts from this blog

2>&1 in command means??

MySQL Function: Thai months to String

Ruby on Rails with PosgreSQL : Basic tutorial