1 / 7

Royal Institute of Technology Stockholm, Sweden

School of Information and Communication Technology. Royal Institute of Technology Stockholm, Sweden. Ralph Kimball, Kimball Group, Number 51, February 1 2004. Latest thinking on Time Dimension Tables. Calendar Date Dimension. Most common and useful time dimension

isleen
Télécharger la présentation

Royal Institute of Technology Stockholm, Sweden

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. School of Information and Communication Technology Royal Institute of TechnologyStockholm, Sweden

  2. Ralph Kimball, Kimball Group, Number 51, February 1 2004 Latest thinking on Time Dimension Tables

  3. Calendar Date Dimension • Most common and useful time dimension • Completely specified at the beginning • Attributes • Generated directly: month name, year, etc. • Embedded: holidays, fiscal periods, etc. • Date Type, Full Date • Surrogate vs. smart keys

  4. Date Type, Full Date • “NA”, null • … • “date”, 20081125 • “date”, 20081126 • “date”, 20081127 • …

  5. Surrogate vs. smart keys • Surrogate Keys • 1, “NA”, null • … • 329, “date”, 20081125 • 330, “date”, 20081126 • 331, “date”, 20081127 • … • * assuming we count 2008 onwards

  6. Surrogate vs. smart keys • Smart Keys • 99999999, “NA”, null • … • 20081125, “date”, 20081125 • 20081126, “date”, 20081126 • 20081127, “date”, 20081127 • …

  7. Time of day • Previous approach • Date Dimension (year, month, week, day, etc.) • Time Dimension (hour, minutes, seconds, etc.) • Time of day • Time-of-day Dimension(minutes or seconds past midnight) • New approach • Date Dimension • New Fact – SQL Date Timestamp • Time-of-day Dimension (optional)

More Related