当前位置:网站首页>Dimension table and fact table in data warehouse
Dimension table and fact table in data warehouse
2022-07-02 15:53:00 【Taro shaft-】
Catalog
1.2 Characteristics of dimension table
2.2 The characteristics of the fact table
2.3 Classification of fact tables
1、 Dimension table
1.1 Dimension table
Dimension tables are generally descriptive information about facts , Each dimension table corresponds to an object or a concept in the real world .
for example : user , goods , date , Such area
1.2 Characteristics of dimension table
1) The dimension table has a wide range
2) Compared with the fact table , Fewer rows
3) The content is relatively fixed
For example, time dimension table :

2 Fact table
2.1 The concept of fact table
In the fact table Each line represents a business event ( Place an order , payment , Refund, etc ).“ The facts ” This term represents a measure of business events ( Can count the number of times , Number , Amount, etc. )
for example ,xxx One day I bought a product on a platform 250 element .
2.2 The characteristics of the fact table
1) Very big
2) The content is relatively narrow : Fewer columns
3) Change often , A lot more will be added every day
2.3 Classification of fact tables
1) Transactional fact table
Take each event as a unit ,
for example , A sales order , A payment record, etc
2) Periodic snapshot fact table
Periodic snapshot fact table Not all data will be retained , Keep only data at fixed intervals
for example , Daily or monthly sales , Or monthly account balance
3) Cumulative snapshot fact table
The cumulative snapshot fact table is used to track changes in business facts
for example , The data warehouse may need to accumulate or store orders from the time of placing an order , To order items are packaged 、 transport 、 And the time point data of each business stage signed in to track the progress of the order declaration cycle .
边栏推荐
- 愛可可AI前沿推介(7.2)
- Introduction to dynamic planning I, BFS of queue (70.121.279.200)
- Solve the problem of base64encoder error
- (5) Flink's table API and SQL update mode and Kafka connector case
- 全是精华的模电专题复习资料:基本放大电路知识点
- Analysis of the difference between array and linked list
- 构建多架构镜像的最佳实践
- How to use percona tool to add fields to MySQL table after interruption
- PTA ladder game exercise set l2-001 inter city emergency rescue
- Astra: could not open "2bc5/ [email protected] /6“: Failed to set USB interface
猜你喜欢
随机推荐
College entrance examination score line climbing
matlab中wavedec2,说说wavedec2函数[通俗易懂]
PHP static members
Fiddler实现手机抓包——入门
/Bin/ld: cannot find -lcrypto
奥比中光 astra: Could not open “2bc5/[email protected]/6“: Failed to set USB interface
SQL modification statement
floyed「建议收藏」
已知两种遍历序列构造二叉树
Solve the problem of base64encoder error
纪念成为首个 DAYU200 三方 demo 贡献者
将点云坐标转换成世界坐标的demo
数字藏品系统开发(程序开发)丨数字藏品3D建模经济模式系统开发源码
QVariant与Json的各种纠葛——Qt
locate: 无法执行 stat () `/var/lib/mlocate/mlocate.db‘: 没有那个文件或目录
Strings and arrays
/Bin/ld: cannot find -lssl
2303. Calculate the total tax payable
Add an empty column to spark dataframe - add an empty column to spark dataframe
Pyinstaller's method of packaging pictures attached to exe




![[experience cloud] how to get the metadata of experience cloud in vscode](/img/45/012c2265402ba1b44f4497f468bc61.png)



