当前位置:网站首页>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 .
边栏推荐
- 目标检测—利用labelimg制作自己的深度学习目标检测数据集
- 已知两种遍历序列构造二叉树
- Lseek error
- College entrance examination admission score line climbing
- Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
- Make p12 certificate [easy to understand]
- Introduction to dynamic planning I, BFS of queue (70.121.279.200)
- 6091. Divide the array so that the maximum difference is K
- 数据库系统概论第一章简答题-期末考得怎么样?
- 6091. 划分数组使最大差为 K
猜你喜欢
可视化技术在 Nebula Graph 中的应用
如何实现十亿级离线 CSV 导入 Nebula Graph
Traversal before, during and after binary tree
[leetcode] 417 - Pacific Atlantic current problem
[leetcode] 1162 map analysis
愛可可AI前沿推介(7.2)
win10系统升级一段时间后,内存占用过高
[leetcode] 1905 statistics sub Island
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
爱可可AI前沿推介(7.2)
随机推荐
睿智的目标检测23——Pytorch搭建SSD目标检测平台
/bin/ld: 找不到 -lxml2
2303. Calculate the total tax payable
floyed「建议收藏」
6090. Minimax games
Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points
二叉树前,中,后序遍历
/bin/ld: 找不到 -lpam
2278. Percentage of letters in string
/Bin/ld: cannot find -lssl
(Wanzi essence knowledge summary) basic knowledge of shell script programming
全方位解读服务网格(Service Mesh)的背景和概念
Boot 连接 Impala数据库
(5) Flink's table API and SQL update mode and Kafka connector case
Wise target detection 23 - pytoch builds SSD target detection platform
GraphX 图计算实践之模式匹配抽取特定子图
Fastjson list to jsonarray and jsonarray to list "suggested collections"
Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
Deux séquences ergodiques connues pour construire des arbres binaires
Two traversal sequences are known to construct binary trees