当前位置:网站首页>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 .
边栏推荐
- Fastjson list to jsonarray and jsonarray to list "suggested collections"
- 2278. 字母在字符串中的百分比
- How to use percona tool to add fields to MySQL table after interruption
- What are the necessary functions of short video app development?
- Use ffmpeg command line to push UDP and RTP streams (H264 and TS), and ffplay receives
- 6092. 替换数组中的元素
- Some problems about pytorch extension
- 已知两种遍历序列构造二叉树
- Fiddler实现手机抓包——入门
- Boot 事务使用
猜你喜欢
HMS core machine learning service helps zaful users to shop conveniently
隐藏在 Nebula Graph 背后的星辰大海
Aiko ai Frontier promotion (7.2)
Boot 事务使用
[leetcode] 417 - Pacific Atlantic current problem
[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
Aike AI frontier promotion (7.2)
爱可可AI前沿推介(7.2)
【Experience Cloud】如何在VsCode中取得Experience Cloud的MetaData
随机推荐
Fiddler实现手机抓包——入门
Thoroughly understand browser strong cache and negotiation cache
(Wanzi essence knowledge summary) basic knowledge of shell script programming
Add an empty column to spark dataframe - add an empty column to spark dataframe
Comment réaliser un graphique Nebula d'importation CSV hors ligne de niveau milliard
Moveit 避障路径规划 demo
Fastjson list to jsonarray and jsonarray to list "suggested collections"
树-二叉搜索树
《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量
6090. 极大极小游戏
/Bin/ld: cannot find -lssl
Nebula Graph & 数仓血缘关系数据的存储与读写
/bin/ld: 找不到 -lcrypto
2279. 装满石头的背包的最大数量
C # get PLC information (kepserver) II
Crawl the information of national colleges and universities in 1 minute and make it into a large screen for visualization!
睿智的目标检测23——Pytorch搭建SSD目标检测平台
/Bin/ld: cannot find -lxml2
构建多架构镜像的最佳实践
Teach you how to build virtual machines locally and deploy microservices