Dw design date_dimension_1_1
Click here to load reader
-
Upload
claudia-gomez -
Category
Technology
-
view
295 -
download
3
description
Transcript of Dw design date_dimension_1_1
DATA WAREHOUSING Multi Dimensional Data Modeling. Date Dimension
2
One row for every day for which you expect to have data for the fact table
3
Usually use a meaningful integer surrogate key (such as yyyymmdd 20060926 for Sep. 26, 2006).
Note: this order sorts correctly.
4
Include rows for missing or future dates to be added later.
5
6
Day of Week
Type of Day
Fiscal Week
Fiscal Month
Fiscal Quarter
Fiscal Year
Day
Calendar
Month
Calendar
Quarter
Calendar Year
Holiday
Calendar
Week
Attribute Name Attribute Description Sample Values
Day The specif ic day that an activity took place. 06/04/1998; 06/05/1998
Day of Week The specif ic name of the day. Monday; Tuesday
Holiday Identif ies that this day is a holiday. Easter; Thanksgiving
Type of Day Indicates w hether or not this day is a
w eekday or a w eekend day.
Weekend; Weekday
WE 06/06/1998;
WE 06/13/1998
Calendar Month The calendar month. January,1998; February, 1998
Calendar Quarter The calendar quarter. 1998Q1; 1998Q4
Calendar Year The calendar year. 1998
F Week 1 1998;
F Week 46 1998
F January, 1998;
F February, 1998
Fiscal Quarter The grouping of 3 f iscal months. F 1998Q1; F1998Q2
Fiscal Year The grouping of 52 f iscal w eeks / 12 f iscal
months that comprise the f inancial year.
F 1998; F 1999
Fiscal Month The fiscal period comprised of 4 or 5
w eeks. Note that the F in the data value
indicates that this is a f iscal time period.
Calendar Week The w eek ending date, alw ays a Saturday.
Note that WE denotes w eek ending.
Fiscal Week The w eek that represents the corporate
calendar. Note that the F in the data value
indicates that this is a f iscal time period.
The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross