我们正在处理的客户可以是公司或零售。这两种类型有一些共同的领域,而另一些(更多的)不同。在设计数据仓库时,我们应该使用单个客户维度、企业客户维度和零售客户维度。
每种方法的优缺点是什么?
谢谢。
发布于 2016-08-08 03:32:45
我不主张使用单独的corp_customer和retail_customer维度,主要是因为您的报告团队将永远不得不使用case when corp_name is null then retail_name else corp_name end类型语句处理公共字段。
根据“更多”的确切数量,id将使用单个客户维度,其中可能包含大量空字段--或者--一个包含所有共享字段的customer_dim,以及通过corporate_customer_sk和retail_customer_sk访问的customer_retail_dim和customer_corporate_dim表与customer_dim (两者都有适当的-1条记录)。
https://stackoverflow.com/questions/38447145
复制相似问题