当前位置:网站首页>数仓中的维度表与事实表
数仓中的维度表与事实表
2022-07-02 12:30:00 【芋辕-】
目录
1、维度表
1.1 维度表
维度表一般是对事实的描述信息,每一张维度表对应现实世界中的一个对象或者一个概念。
例如:用户,商品,日期,地区等
1.2 维度表的特征
1)维表的范围比较宽
2)跟事实表相比,行数比较少
3)内容相对固定
例如时间维度表:

2 事实表
2.1 事实表的概念
事实表中的 每一行代表着一个业务事件(下单,支付,退款等)。“事实”这个术语表示的是业务事件的度量值(可统计次数,个数,金额等)
例如,xxx某一天在某个平台买了一件商品250元。
2.2 事实表的特点
1)非常的大
2)内容相对的窄:列数较少
3)经常发生变化,每天会新增很多
2.3 事实表的分类
1)事务性事实表
以每个事件作为单位,
例如,一个销售订单,一笔支付记录等
2)周期性快照事实表
周期性快照事实表中 不会保留所有数据,只保留固定时间间隔的数据
例如,每天或者每月的销售额,或者每月的账户余额等
3)累积型快照事实表
累计快照事实表用于跟踪业务事实的变化
例如,数据仓库中可能需要累积或者存储订单从下单开始,到订单商品被打包、运输、和签收的各个业务阶段的时间点数据来跟踪订单声明周期的进展情况。
边栏推荐
- Why does the system convert the temp environment variable to a short file name?
- 2278. Percentage of letters in string
- 二叉树前,中,后序遍历
- Target detection - make your own deep learning target detection data set with labelimg
- Astra: could not open "2bc5/ [email protected] /6“: Failed to set USB interface
- [leetcode] 1905 statistics sub Island
- 中科大脑知识图谱平台建设及业务实践
- /Bin/ld: cannot find -lxslt
- 6092. Replace elements in the array
- lseek 出错
猜你喜欢

PostgresSQL 流复制 主备切换 主库无读写宕机场景

HMS core machine learning service helps zaful users to shop conveniently

Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
![[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)](/img/26/3f19d36c048e669c736e27384e0fa7.jpg)
[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)

动态规划入门一,队列的bfs(70.121.279.200)

Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals

Two traversal sequences are known to construct binary trees

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

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

Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
随机推荐
Golang MD5 encryption and MD5 salt value encryption
《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量
(5) Flink's table API and SQL update mode and Kafka connector case
Pyinstaller's method of packaging pictures attached to exe
How to use percona tool to add fields to MySQL table after interruption
爱可可AI前沿推介(7.2)
2279. Maximum number of backpacks filled with stones
[leetcode] 577 reverse word III in string
Fiddler realizes mobile packet capturing - getting started
[leetcode] 1162 map analysis
/bin/ld: 找不到 -lpam
Moveit 避障路径规划 demo
/Bin/ld: cannot find -llz4
Folium, diagnosis and close contact trajectory above
Ssh/scp does not prompt all activities are monitored and reported
(Wanzi essence knowledge summary) basic knowledge of shell script programming
6091. 划分数组使最大差为 K
Boot 中bean配置覆盖
Fiddler实现手机抓包——入门
Two traversal sequences are known to construct binary trees