事实表 - CRM - 客户 X 事件
我是DW新手,我有一个简单的问题。想象一下,我想创建一个用于分析型 CRM 的 DW。
我有一个名为“事件”的事实表,还有一个名为“客户”的维度。
问题是。一项活动可以有 N 个客户,并且一名客户可以参与 N 个活动。
所以客户(维度)和事件(事实)之间的关系是NxN。该架构正确吗?如果不是,哪种模式更适合这种情况?
I am new in DW and I have a simple question. Imagine that I want to create a DW to analytical CRM.
I have a fact table called Event and I have a dimension called Customer.
The problem is. One event can have N Customers, and one Customer can be in N events.
So the relation between Customer(dimension) and Events(fact) are NxN. Is that schema is correct? If not, what schema will be better for this case?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本质上,事实表是维度之间的多对多表。因此,在您的情况下,
Event
表是一个维度表。OR
Event Participation
,它与Event
共享一些维度,或者将EventSequenceNumber
作为退化的方面。In essence a fact table is a many-to many table in between dimensions. So in your case,
Event
table is a dimension table.OR
Event Participation
which shares some dimensions with theEvent
or has theEventSequenceNumber
as a degenerate dimension.