数据保管库模型中的事务数据



我正在数据保险库模型中编写数据仓库。但实际上我不确定如何处理交易数据。我有以下属性

Service
Time(based on minutes)
Status

我有一个用于"服务"的中心表、一个用于"状态"的中心表和一个用于"时间"的中心表,但它不是基于分钟数的。

问题是?交易数据是否链接表?你会/如何设计这个?感谢您的评论

如果我正确理解了您的问题,以下是集线器的结构:

HUB Service (Hub_Service_HKEY >PK)

HUB Status(HUB_Status_HKEY ->PK)

HUB Time(HUB_Time_HKEY ->PK) and Satellite (HUB_Time_HKEY(FK),Year,month,day,hour)

然后,事务 LINK 的结构将被TXLNK_SST(TX_LNK_HKEY(PK),HUB_Time_HKEY(FK),HUB_Status_HKEY(FK),Hub_Service_HKEY(FK), Minute_ID, Some_other_fileds_if_any *)以粒度分钟存储事务。

* -> Since transaction link does not store history so other attributes should be stored in transaction link itself.

最新更新