由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - Any thoughts about two slowly chaning dimensions have FK relationship
相关主题
Slow changing dimension loading 有什么好方法?关于SSAS的问题
请教一个数据库/仓库设计的问题MDX Cube
关于股票数据库data warehouse里面,所有dimension table的数据要拷贝到新的fact table里面,觉得这做法比较傻。
一个ETL process 里边 change data capture 的问题, 大家讨论Dimension table 的 denormalized的问题
大家都很忙吗?fact table 和 dimension table 的区别到底是什么?
微软BI SSIS 2012 控件与案例精讲课程学习方式与面试聊Data Warehouse 3. Facts and Dimensions (转载)
[转载] What is "4th Dimension(Mac)"?SSAS Cube
有人听说过HD Dimension Corp.这家公司吗?学Oracle BI ,从哪里入手?
相关话题的讨论汇总
话题: emp话题: dim话题: fk话题: chaning
进入Database版参与讨论
1 (共1页)
a****b
发帖数: 489
1
Any thoughts/concerns/best practices about two slowly chaning dimensions
have FK relationship?
Thanks
e****7
发帖数: 4387
2
好久没来了,
you can have a bridge(fact, a factless fact) table with SK for the said dims
if it's the
relationship that you are interested in. otherwise your other fact tables
should already have the relationship baked in.
问题比较模糊,如果能举实例,或许有比较确切的方案。

【在 a****b 的大作中提到】
: Any thoughts/concerns/best practices about two slowly chaning dimensions
: have FK relationship?
: Thanks

a****b
发帖数: 489
3
For example, I have two dimensions, Dim_Emp and Dim_Emp_Account. Assuming,
there is only a one-to-many relationship between Dim_Emp and Dim_Emp_Account
, meaning one account belongs to one emplyee; and one employee could has
several account. We COULD PUT Dim_Emp_Key in Dim_Emp_Acc. But for the design
, because
Dim_Emp is a conformed dimension, we CANNOT merge Dim_Emp into Dim_Emp_Acct(
denormalization). Dim_Emp is an SCD because of address, Dim_Emp_Account is
an SCD too because of Banker or some other attributes.
What would be the impact if there is a FK relationship between the above
dimensions? What could be the best practice to haNdle the above situation?
e****7
发帖数: 4387
4
there should be a dimAccount table as well right?
this actually fits into what I wrote earlier. the true relationship between
EMP and account should probably live in the fact table which records
transactions between EMP and accounts. so factPaycheck or something like
that.
the relationship alone between account and employees is probably less useful
unless there is a transaction between them.
another way to look at this is what information is the business looking for
from their point of view. are they looking for the relationship itself or
the transaction between them.
hope this makes sense.

Account
design
Acct(

【在 a****b 的大作中提到】
: For example, I have two dimensions, Dim_Emp and Dim_Emp_Account. Assuming,
: there is only a one-to-many relationship between Dim_Emp and Dim_Emp_Account
: , meaning one account belongs to one emplyee; and one employee could has
: several account. We COULD PUT Dim_Emp_Key in Dim_Emp_Acc. But for the design
: , because
: Dim_Emp is a conformed dimension, we CANNOT merge Dim_Emp into Dim_Emp_Acct(
: denormalization). Dim_Emp is an SCD because of address, Dim_Emp_Account is
: an SCD too because of Banker or some other attributes.
: What would be the impact if there is a FK relationship between the above
: dimensions? What could be the best practice to haNdle the above situation?

b****k
发帖数: 23
5
你可以看看我的博客 数据仓库系列 - 缓慢渐变维度 (Slowly Changing Dimension)
常见的三种类型及原型设计 http://www.cnblogs.com/biwork/p/3363749.html
微软BI 之SSIS 系列 - 数据仓库中实现 Slowly Changing Dimension 缓慢渐变维度的
三种方式
http://www.cnblogs.com/biwork/p/3371338.html
应该可以帮助到你
s*********t
发帖数: 296
6
通常的做法是象eagle7说的:两个dimension table(dimEmp & dimAccount),关联通过
fact table实现。
如果确实需要关联dimEmp & dimAccount,可以在dimEmp & dimAccount中间建一个
bridge table。一对多的关系下,也有人在dimEmp里加dimAccount的logical key 作为
FK。

between
useful
for

【在 e****7 的大作中提到】
: there should be a dimAccount table as well right?
: this actually fits into what I wrote earlier. the true relationship between
: EMP and account should probably live in the fact table which records
: transactions between EMP and accounts. so factPaycheck or something like
: that.
: the relationship alone between account and employees is probably less useful
: unless there is a transaction between them.
: another way to look at this is what information is the business looking for
: from their point of view. are they looking for the relationship itself or
: the transaction between them.

a******g
发帖数: 725
7
slowly chaning dimensions只能用在简单的东西上,就是点鼠标。
垃圾货, 实用性太差。 复杂的都是CODE 解决。
e****7
发帖数: 4387
8
不会吧,我开始做BI的时候没少花功夫,白费了?

【在 a******g 的大作中提到】
: slowly chaning dimensions只能用在简单的东西上,就是点鼠标。
: 垃圾货, 实用性太差。 复杂的都是CODE 解决。

1 (共1页)
进入Database版参与讨论
相关主题
学Oracle BI ,从哪里入手?大家都很忙吗?
ralph kimball 的书要买那一本呢微软BI SSIS 2012 控件与案例精讲课程学习方式与面试
初级问题[转载] What is "4th Dimension(Mac)"?
SQL question有人听说过HD Dimension Corp.这家公司吗?
Slow changing dimension loading 有什么好方法?关于SSAS的问题
请教一个数据库/仓库设计的问题MDX Cube
关于股票数据库data warehouse里面,所有dimension table的数据要拷贝到新的fact table里面,觉得这做法比较傻。
一个ETL process 里边 change data capture 的问题, 大家讨论Dimension table 的 denormalized的问题
相关话题的讨论汇总
话题: emp话题: dim话题: fk话题: chaning