当前位置:网站首页>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 .
边栏推荐
- 可视化技术在 Nebula Graph 中的应用
- 使用FFmpeg命令行进行UDP、RTP推流(H264、TS),ffplay接收
- [leetcode] 1140 stone game II
- ssh/scp 使不提示 All activities are monitored and reported.
- Aike AI frontier promotion (7.2)
- 奥比中光 astra: Could not open “2bc5/[email protected]/6“: Failed to set USB interface
- 【小白聊云】中小企业容器化改造建议
- College entrance examination admission score line crawler
- Pyobject to char* (string)
- Pyinstaller's method of packaging pictures attached to exe
猜你喜欢

Postgressql stream replication active / standby switchover primary database no read / write downtime scenario

Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC

Armv8-a programming guide MMU (4)

Xpt2046 four wire resistive touch screen
![[leetcode] 1905 statistics sub Island](/img/82/d2f7b829f5beb7f9f1eabe8d101ecb.png)
[leetcode] 1905 statistics sub Island

图数据库|Nebula Graph v3.1.0 性能报告

Ant group's large-scale map computing system tugraph passed the national evaluation

动态规划入门二(5.647.62)

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

【5G NR】RRC连接释放
随机推荐
Floyed "suggestions collection"
《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
/Bin/ld: cannot find -lxslt
Jsp+mysql006 community management system
idea 公共方法抽取快捷键
智联招聘的基于 Nebula Graph 的推荐实践分享
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
fastjson List转JSONArray以及JSONArray转List「建议收藏」
/bin/ld: 找不到 -lssl
Boot 连接 Impala数据库
全方位解读服务网格(Service Mesh)的背景和概念
6091. Divide the array so that the maximum difference is K
Introduction to dynamic planning I, BFS of queue (70.121.279.200)
2278. Percentage of letters in string
[leetcode] 1905 statistics sub Island
2279. Maximum number of backpacks filled with stones
Pyobject to char* (string)
Ant group's large-scale map computing system tugraph passed the national evaluation
基于 Nebula Graph 构建百亿关系知识图谱实践
Moveit obstacle avoidance path planning demo