Dw design date_dimension_1_1

428 views

Published on

Dimension Tiempo

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
428
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dw design date_dimension_1_1

  1. 1. DATA WAREHOUSINGMulti DimensionalData Modeling.Date Dimension
  2. 2. 2
  3. 3.  One row for every day for which you expect to have data for the fact table3
  4. 4.  Usually use a meaningful integer surrogate key (such as yyyymmdd 20060926 for Sep. 26, 2006).  Note: this order sorts correctly.4
  5. 5.  Include rows for missing or future dates to be added later.5
  6. 6. Fiscal Year Calendar Year Calendar Fiscal Quarter Quarter Calendar Fiscal Month Month Fiscal Week Calendar Type of Day Week Day of Week Day Holiday6
  7. 7. Attribute Nam e Attribute Description Sam ple ValuesDay The specific day that an activity took place. 06/04/1998; 06/05/1998Day of Week The specific name of the day. Monday; TuesdayHoliday Identifies that this day is a holiday. Easter; ThanksgivingType of Day Indicates w hether or not this day is a Weekend; Weekday w eekday or a w eekend day.Calendar Week The w eek ending date, alw ays a Saturday. WE 06/06/1998; Note that WE denotes w eek ending. WE 06/13/1998Calendar Month The calendar month. January,1998; February, 1998Calendar Quarter The calendar quarter. 1998Q1; 1998Q4Calendar Year The calendar year. 1998Fiscal Week The w eek that represents the corporate F Week 1 1998; calendar. Note that the F in the data value F Week 46 1998Fiscal Month indicates that thiscomprised time period. The fiscal period is a fiscal of 4 or 5 F January, 1998; w eeks. Note that the F in the data value F February, 1998Fiscal Quarter indicates that of 3 is a fiscal time period. The grouping this fiscal months. F 1998Q1; F1998Q2Fiscal Year The grouping of 52 fiscal w eeks / 12 fiscal F 1998; F 1999 months that comprise the financial year.
  8. 8.  The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross

×