尺寸变化缓慢-ODS和DWH

时间:2019-12-23 15:17:59

标签: sql-server ssis scd

我的数据仓库中具有以下维度EmployeeStatus:

  SELECT des.EmployeeStatusSK
            ,des.EmployeeStatusId
            ,des.Label AS Status
             FROM DWH.DimEmployeeStatus des

输出如下:

EmployeeStatusSK EmployeeStatusId Status
1                1                Recruited
2                2                In
3                3                In (In exit confirmed)
4                4                Out
0                0                Undefined

在我的ODS部分中,我正在从STG表EmployeeStatus到ODS表DimEmployeeStatus中获取数据,并在GETUTCDATE()的派生列中添加列CreationDate以进行数据时间跟踪:

enter image description here

我想在Datawarehouse部分中使用“缓慢变化的维度”来实现历史跟踪,因为我知道我将数据从ODS加载到DWH,如下所示:

enter image description here

问题:我应该如何在DWH部分中实现缓慢变化的尺寸?

0 个答案:

没有答案