当前位置:网站首页>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 .
边栏推荐
- How to use percona tool to add fields to MySQL table after interruption
- Nebula Graph & 数仓血缘关系数据的存储与读写
- /bin/ld: 找不到 -lssl
- /Bin/ld: cannot find -lcrypto
- Boot 中bean配置覆盖
- Locate: cannot execute stat() `/var/lib/mlocate/mlocate Db ': there is no such file or directory
- Soul torture, what is AQS???
- 将点云坐标转换成世界坐标的demo
- SQL modification statement
- Target detection - make your own deep learning target detection data set with labelimg
猜你喜欢
Ant group's large-scale map computing system tugraph passed the national evaluation
Teach you how to build virtual machines locally and deploy microservices
Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
已知兩種遍曆序列構造二叉樹
如何實現十億級離線 CSV 導入 Nebula Graph
Soul torture, what is AQS???
win10系统升级一段时间后,内存占用过高
Armv8-a programming guide MMU (4)
《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
PTA ladder game exercise set l2-001 inter city emergency rescue
随机推荐
解决BASE64Encoder报错的问题
Moveit obstacle avoidance path planning demo
Fastjson list to jsonarray and jsonarray to list "suggested collections"
/bin/ld: 找不到 -lssl
College entrance examination admission score line crawler
数组和链表的区别浅析
[leetcode] 1020 number of enclaves
6092. Replace elements in the array
《大学“电路分析基础”课程实验合集.实验四》丨线性电路特性的研究
[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)
6092. 替换数组中的元素
/Bin/ld: cannot find -lgssapi_ krb5
Fiddler realizes mobile packet capturing - getting started
floyed「建议收藏」
idea 公共方法抽取快捷键
纪念成为首个 DAYU200 三方 demo 贡献者
/bin/ld: 找不到 -lxml2
Locate: cannot execute stat() `/var/lib/mlocate/mlocate Db ': there is no such file or directory
如何实现十亿级离线 CSV 导入 Nebula Graph
beforeEach