46
Stock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock 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 - www.recruitwise.jobs

CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Embed Size (px)

Citation preview

Page 1: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

CodeStock is proudly partnered with:

Send instant feedback on this session via Twitter:

Send a direct message with the room number to @CodeStock 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 - www.recruitwise.jobs

Page 2: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Wrox Press

Join the discussion

Facebook: www.facebook.com/wroxpressTwitter: @wrox

Page 3: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Tim CostelloDimensional Design 101

Page 4: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

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. www.Interworks.com

Page 5: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Inman Corporate Information Factory (CIF)

Kimball Data Warehouse (DW)

- vs -

Page 6: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Inman Corporate Information Factory (CIF)

Kimball Data Warehouse (DW)

- vs -

þ

Page 7: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

þ Dimensional Bus

Things we will cover …

Page 8: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

þ Dimensional BusFact Tablesþ

Things we will cover …

Page 9: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

þ Dimensional BusFact TablesDimension Tables

þþ

Things we will cover …

Page 10: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

ý Mega Data Warehouse

Things we will not cover …

Page 11: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

ý Mega Data WarehouseOLAPý

Things we will not cover …

Page 12: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

ý Mega Data WarehouseOLAPETL (Extract Transform Load)

ýý

Things we will not cover …

Page 13: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

ý Mega Data WarehouseOLAPETL (Extract Transform Load)Presentation Layer

ýýý

Things we will not cover …

Page 14: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

http://www.flickr.com/photos/comprock/4937334032/sizes/z/in/photostream/

Page 15: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

http://www.flickr.com/photos/cpoyatos/4374856699/sizes/m/in/photostream/

http://www.flickr.com/photos/scottmontreal/2475391816/sizes/m/in/photostream/

http://www.tcpalm.com/photos/2009/aug/05/193893/

Page 16: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Transactional Database

Page 17: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 18: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Dimensional Design

Page 19: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Star Schema

Page 20: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Snowflake Schema

Page 21: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 22: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Dimensional Bus

Page 23: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 24: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Fact Table

Page 25: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

• Foreign Keys• Measures• Degenerate Dimensions

Fact Tables Contain

*

* Sometimes.

Page 26: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 27: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

3 Kinds Of Fact Table

Transactional Fact Tableþ

Page 28: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

3 Kinds Of Fact Table

Transactional Fact TableAccumulating Snapshot

þ

þ

Page 29: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

3 Kinds Of Fact Table

Transactional Fact Table

Periodic SnapshotAccumulating Snapshot

þ

þ

þ

Page 30: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Transactional Fact Table

Page 31: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Accumulating SnapshotFactReturnRequest

ProductReturnKey

[Return Request Initiated Date Key]

[Return Request Ticket Start Date Key]

[Return Request Product Received Date Key]

[Return Request Product Evaluated Dated Key]

[Return Request Refund Determination Date Key]

[Return Request Customer Notified of Determination Date Key]

[Return Request Ticket End Date Key]

Page 32: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Periodic SnapshotFactInternetSales_PeriodicSnapshot

ProductKey

MonthKey

YearKey

SalesTerritoryKey

UnitsSold

TotalProductCost

SalesAmount

TaxAmount

Freight

Page 33: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Dimension Tables

Page 34: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 35: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

SELECT DateId, FullDate, NextDayDate, Season, CalendarYear, CalendarYearQuarter, CalendarYearMonth, CalendarYearDayOfYear, CalendarQuarter, CalendarMonth, CalendarDayOfYear, CalendarDayOfMonth

Page 36: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

, CalendarDayOfWeek, CalendarYearName, CalendarYearQuarterName, CalendarYearMonthName, CalendarYearMonthNameLong, CalendarQuarterName, CalendarMonthName, CalendarMonthNameLong, WeekdayName, WeekdayNameLong, CalendarStartOfYearDate, CalendarEndOfYearDate, CalendarStartOfQuarterDate

Page 37: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

, CalendarEndOfQuarterDate, CalendarStartOfMonthDate, CalendarEndOfMonthDate, QuarterSeqNo, MonthSeqNo, FiscalYearName, FiscalYearPeriod, FiscalYearDayOfYear, FiscalYearWeekName, FiscalSemester, FiscalQuarter, FiscalPeriod, FiscalDayOfYear

Page 38: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

, FiscalDayOfPeriod, FiscalWeekName, FiscalStartOfYearDate, FiscalEndOfYearDate, FiscalStartOfPeriodDate, FiscalEndOfPeriodDate, ISODate, ISOYearWeekNo, ISOWeekNo, ISODayOfWeek, ISOYearWeekName, ISOYearWeekDayOfWeekName, DateFormatYYYYMMDD

Page 39: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

, DateFormatYYYYMD, DateFormatMMDDYEAR, DateFormatMDYEAR, DateFormatMMMDYYYY, DateFormatMMMMMMMMMDYYYY, DateFormatMMDDYY, DateFormatMDYY, WorkDay, IsWorkDay

from dbo.Dim_Date

Page 40: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

FactInternetSales_PeriodicSnapshotProductKey

MonthKey

YearKey

SalesTerritoryKey

UnitsSold

TotalProductCost

SalesAmount

TaxAmount

Freight

FactInternetSalesProductKey

OrderDateKey

DueDateKey

ShipDateKey

CustomerKey

PromotionKey

CurrencyKey

SalesTerritoryKey

SalesOrderNumber

SalesOrderLineNumber

RevisionNumber

OrderQuantity

UnitPrice

ExtendedAmount

UnitPriceDiscountPct

DiscountAmount

ProductStandardCost

TotalProductCost

SalesAmount

TaxAmt

Freight

CarrierTrackingNumber

CustomerPONumber

Conformed Dimensions

Page 41: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Role Playing Dimensions

EmployeeIDStartDateKeyEndDateKey…

DateKeyFull_DateNextDayDateSeason…

20110102

20110103

dimDate factEmployeeReview

Page 42: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

EmployeeIDStartDateKeyEndDateKey…

StartDateKeyFull_DateNextDayDateSeason…

EndDateKeyFull_DateNextDayDateSeason…

dimStartDate (View based on dimDate)

dimEndDate (View based on dimDate)

factEmployeeReview

Page 43: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock
Page 44: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Resources and Links

Page 45: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Kimball Design Tip #18: Taking The Publishing Metaphor Seriously: http://www.rkimball.com/html/designtipsPDF/DesignTips2001/KimballDT18Taking.pdf

Kimball Design Tip #46: Another Look At Degenerate Dimension: http://www.rkimball.com/html/designtipsPDF/DesignTips2003/KimballDT46AnotherLook.pdf

Design Tip #113 Creating, Using, and Maintaining Junk Dimension: http://www.rkimball.com/html/09dt/DT113CreatingUsingMaintainingJunkDimensions.pdf

Design Tip #105 Snowflakes, Outriggers, and Bridges: http://www.rkimball.com/html/08dt/KU105Snowflakes_Outriggers_Bridges.pdf

Kimball Design Tip #51: Latest Thinking On Time Dimension Table: http://www.kimballuniversity.com/html/designtipsPDF/KimballDT51LatestThinking.pdf

Design Tip #69 Identifying Business Processes: http://www.rkimball.com/html/designtipsPDF/DesignTips2005/DTKU69IdentifyingBusinessProcesses.pdf

Kimball Design Tip #37: Modeling A Pipeline With An Accumulating Snapshot: http://www.rkimball.com/html/designtipsPDF/DesignTips2002/KimballDT37ModelingPipeline.pdf

Kimball Design Tip #16: Hot Swappable Dimension: http://www.rkimball.com/html/designtipsPDF/DesignTips2000%20/KimballDT16HotSwappable.pdf

Kimball Design Tip #21: Declaring The Grain: http://www.rkimball.com/html/designtipsPDF/DesignTips2001/KimballDT21Declaring.pdf

Fundamental Grains: http://www.kimballgroup.com/html/articles_search/articles1999/9903IE.html?TrkID=IE199903_2

Page 46: CodeStock is proudly partnered with: Send instant feedback on this session via Twitter: Send a direct message with the room number to @CodeStock d codestock

Twitter:

@TimCost

Email:

[email protected]

www.TheDataRevolution.com