当前位置:网站首页>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 .
边栏推荐
- /bin/ld: 找不到 -llz4
- /bin/ld: 找不到 -lxslt
- Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals
- Thoroughly understand browser strong cache and negotiation cache
- 智联招聘的基于 Nebula Graph 的推荐实践分享
- Ssh/scp does not prompt all activities are monitored and reported
- /Bin/ld: cannot find -llz4
- /bin/ld: 找不到 -lcrypto
- 《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量
- College entrance examination admission score line crawler
猜你喜欢

Aike AI frontier promotion (7.2)

Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network

愛可可AI前沿推介(7.2)

隐藏在 Nebula Graph 背后的星辰大海

Traversal before, during and after binary tree

Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit

基于 Nebula Graph 构建百亿关系知识图谱实践

Thoroughly understand browser strong cache and negotiation cache

《大学“电路分析基础”课程实验合集.实验四》丨线性电路特性的研究

动态规划入门二(5.647.62)
随机推荐
6091. Divide the array so that the maximum difference is K
Astra: could not open "2bc5/ [email protected] /6“: Failed to set USB interface
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
College entrance examination score line climbing
可视化技术在 Nebula Graph 中的应用
SQL modification statement
Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
Add an empty column to spark dataframe - add an empty column to spark dataframe
The outline dimension function application of small motherboard
/bin/ld: 找不到 -lssl
制作p12证书[通俗易懂]
Invalid bound statement (not found)解决方法总结
GraphX 图计算实践之模式匹配抽取特定子图
SQL FOREIGN KEY
使用FFmpeg命令行进行UDP、RTP推流(H264、TS),ffplay接收
解决BASE64Encoder报错的问题
Digital collection system development (program development) - Digital Collection 3D modeling economic model system development source code
6090. Minimax games
[leetcode] 417 - Pacific Atlantic current problem
Folium, diagnosis and close contact trajectory above