SQL Server Business Intelligence in the ODS table and the table must be some Dim field

  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 ())

Published 144 original articles · won praise 44 · views 130 000 +

Guess you like

Origin blog.csdn.net/u013294097/article/details/102754581