Dw design date_dimension_1_1

8

Click here to load reader

description

Dimension Tiempo

Transcript of Dw design date_dimension_1_1

Page 1: Dw design date_dimension_1_1

DATA WAREHOUSING Multi Dimensional Data Modeling. Date Dimension

Page 2: Dw design date_dimension_1_1

2

Page 3: Dw design date_dimension_1_1

One row for every day for which you expect to have data for the fact table

3

Page 4: Dw design date_dimension_1_1

Usually use a meaningful integer surrogate key (such as yyyymmdd 20060926 for Sep. 26, 2006).

Note: this order sorts correctly.

4

Page 5: Dw design date_dimension_1_1

Include rows for missing or future dates to be added later.

5

Page 6: Dw design date_dimension_1_1

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

Page 7: Dw design date_dimension_1_1

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.

Page 8: Dw design date_dimension_1_1

The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross