CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number d codestock 503 This session is great! For more information on sending feedback using Twitter while at CodeStock, please see the “CodeStock README” in your CodeStock guide. RecruitWise and Staff with Excellence -
Wrox Press Join the discussion Facebook:
Tim Costello Dimensional Design 101
Tim Costello MCIPT SQL 2005 Administration MCTS SQL 2008 Business Intelligence Tableau Certified Professional Dallas Tableau User Group leader. Business Intelligence Consultant for Interworks Inc.
Inman Corporate Information Factory (CIF) Kimball Data Warehouse (DW) - vs -
Inman Corporate Information Factory (CIF) Kimball Data Warehouse (DW) - vs -
Dimensional Bus Things we will cover …
Dimensional Bus Fact Tables Things we will cover …
Dimensional Bus Fact Tables Dimension Tables Things we will cover …
Mega Data Warehouse Things we will not cover …
Mega Data Warehouse OLAP Things we will not cover …
Mega Data Warehouse OLAP ETL (Extract Transform Load) Things we will not cover …
Mega Data Warehouse OLAP ETL (Extract Transform Load) Presentation Layer Things we will not cover …
Transactional Database
Dimensional Design
Star Schema
Snowflake Schema
Dimensional Bus
Fact Table
Foreign Keys Measures Degenerate Dimensions Fact Tables Contain * * Sometimes.
3 Kinds Of Fact Table Transactional Fact Table
3 Kinds Of Fact Table Transactional Fact Table Accumulating Snapshot
3 Kinds Of Fact Table Transactional Fact Table Periodic Snapshot Accumulating Snapshot
Transactional Fact Table
Accumulating Snapshot
Periodic Snapshot
Dimension Tables
SELECT DateId, FullDate, NextDayDate, Season, CalendarYear, CalendarYearQuarter, CalendarYearMonth, CalendarYearDayOfYear, CalendarQuarter, CalendarMonth, CalendarDayOfYear, CalendarDayOfMonth …
, CalendarDayOfWeek, CalendarYearName, CalendarYearQuarterName, CalendarYearMonthName, CalendarYearMonthNameLong, CalendarQuarterName, CalendarMonthName, CalendarMonthNameLong, WeekdayName, WeekdayNameLong, CalendarStartOfYearDate, CalendarEndOfYearDate, CalendarStartOfQuarterDate …
, CalendarEndOfQuarterDate, CalendarStartOfMonthDate, CalendarEndOfMonthDate, QuarterSeqNo, MonthSeqNo, FiscalYearName, FiscalYearPeriod, FiscalYearDayOfYear, FiscalYearWeekName, FiscalSemester, FiscalQuarter, FiscalPeriod, FiscalDayOfYear …
, FiscalDayOfPeriod, FiscalWeekName, FiscalStartOfYearDate, FiscalEndOfYearDate, FiscalStartOfPeriodDate, FiscalEndOfPeriodDate, ISODate, ISOYearWeekNo, ISOWeekNo, ISODayOfWeek, ISOYearWeekName, ISOYearWeekDayOfWeekName, DateFormatYYYYMMDD …
, DateFormatYYYYMD, DateFormatMMDDYEAR, DateFormatMDYEAR, DateFormatMMMDYYYY, DateFormatMMMMMMMMMDYYYY, DateFormatMMDDYY, DateFormatMDYY, WorkDay, IsWorkDay from dbo.Dim_Date
Conformed Dimensions
Role Playing Dimensions EmployeeID StartDateKey EndDateKey … DateKey Full_Date NextDayDate Season … dimDatefactEmployeeReview
EmployeeID StartDateKey EndDateKey … StartDateKey Full_Date NextDayDate Season … EndDateKey Full_Date NextDayDate Season … dimStartDate (View based on dimDate) dimEndDate (View based on dimDate) factEmployeeReview
Resources and Links
Kimball Design Tip #18: Taking The Publishing Metaphor Seriously: Kimball Design Tip #46: Another Look At Degenerate Dimension: Design Tip #113 Creating, Using, and Maintaining Junk Dimension: Design Tip #105 Snowflakes, Outriggers, and Bridges: Kimball Design Tip #51: Latest Thinking On Time Dimension Table: Design Tip #69 Identifying Business Processes: Kimball Design Tip #37: Modeling A Pipeline With An Accumulating Snapshot: Kimball Design Tip #16: Hot Swappable Dimension: Kimball Design Tip #21: Declaring The Grain: Fundamental Grains: