There must be some ODS Table field
[CreationTime] [datetime] NULL, - time service occurs
Createtime datetime default (getdate ()) , - insertion time data warehouse
[DateID] AS ((datepart ( year, [CreationTime]) * (10000) + the datepart (month The, [the CreationTime]) * (100)) + the datepart (Day, [the CreationTime])),
[HourID] the AS (the datepart (hour, [the CreationTime])),
[MiniteID] the AS (the datepart ( minute, [the CreationTime])),
[the IsValid] the AS ((. 1))
Dim table must be some field
CreationTime datetime,
DimStartTime datetime,
DimEndTime datetime,
IsCurrent int default (1),
CreateTime datetime default (getDate ())