0

I'm coding a data warehouse in data vault model. But actually I'm not sure how to work with transaction data. I have the following attributes

Service
Time(based on minutes)
Status

I have a hub table for Service, a hub table for Status and a hub table for Time, but it's not based on minutes.

The question is? Are the transaction data link tables? How would/do you design this? thanks for your comments

4

1 回答 1

2

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

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.

于 2018-01-28T17:33:32.527 回答