type of fact table & example

2019-12-18  本文已影响0人  鲸鱼酱375

definition

Fact table is the primary table in a dimensional model, it included one FK and measures. This Fk link with other dimensional tables.
Also, we can summarize those numeric measures and provide information about the history of the organization.

type

eg: balance amounts are common semi-additive facts because they are additive across all dimensions except time.

eg: Facts which have percentages, ratios calculated.


example

addictive
semi addictive
non addictive
  • quantity, sales amount is additive, because it can be added by date, by store, by product
  • quantity in hand is semi addictive, because it can be added by store, by product,
    but it can not be added by date, cause it denotes snap sorts of a level or balance at one point of time
  • unit price & sales tax are non addictive

link1
link2
视频讲解

上一篇下一篇

猜你喜欢

热点阅读