无事实的事实表与维度表有1:1的关系

时间:2014-05-30 15:37:44

标签: data-warehouse business-intelligence dimensions dimensional-modeling fact-table

Data Source View

我正在审查旧数据仓库&我在无事实的事实表(Fact_contact)和&之间遇到了不寻常的1:1关系。 Dim_Incident。

通常,Fact_Contact用于记录案例/票据/查询。有些客户是匿名的;因此,有uniqueCustRef& CustomerRef“事实”,用于不同的计数。

事实与&之间的1:1关系维度表感觉不对。这是推荐的解决方案吗?目前,没有文件说明为什么它的设计方式如此。

谢谢。

1 个答案:

答案 0 :(得分:0)

你可能是对的;这看起来不对。 FactContact

不应该有incidentId

我不知道要求,但逻辑上认为我会建议以下内容;

IncidentType - what is the type of incident that is logged
FirstIncidentId - the first incident corresponding to the customer/IncidentType
FirstIncidentDate - Date of the above incident
LastIncidentId - the last incident corresponding to the customer/incidenttype - when there is only one incident you will have the firstincidentid and lastincidentid the same
LastIncidentDate - the date of the above incident
IncidentCount - the number of incidents for the customer/incidenttype combination

希望这有帮助

相关问题