Dw design hierarchies_7

255 views
209 views

Published on

Diseño de jerarquias

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

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

No notes for slide

Dw design hierarchies_7

  1. 1. DATA WAREHOUSINGMulti DimensionalData ModelingHierarchies and Levels
  2. 2. 2
  3. 3. product prodId name price store storeId city p1 bolt 10 c1 nyc p2 nut 5 c2 sfo c3 la sale oderId date custId prodId storeId qty amt o100 1/7/97 53 p1 c1 1 12 o102 2/7/97 53 p2 c1 2 11 105 3/8/97 111 p1 c3 5 50 customer custId name address city 53 joe 10 main sfo 81 fred 12 main sfo 111 sally 80 willow la3 3
  4. 4. Group data within dimensions: SalesRep  Region ▪ SubRegion ▪ Country  Customer4 4
  5. 5.  Hierarchies are logical structures that use ordered levels as a means of organizing data.  For a particular level value, a value at the next higher level is its parent, and values at the next lower level are its children5 5
  6. 6.  Hierarchies impose a family structure on dimension values. For a particular level value, a value at the next higher level is its parent, and values at the next lower level are its children.  These familial relationships enable analysts to access data quickly.6 6
  7. 7. A dimension can be composed of more than one hierarchy. years weeks months time day week month quarter year 1 1 1 1 2000 2 1 1 1 2000 quarters 3 1 1 1 2000 days weeks 4 1 1 1 2000 5 1 1 1 2000 6 1 1 1 2000 7 1 1 1 2000 months 8 2 1 1 20007 7
  8. 8.  Query tools use hierarchies to enable you to drill down into your data to view different levels of granularity.  This is one of the key benefits of a data warehouse.8 8
  9. 9.  When designing hierarchies, you must consider the relationships in business structures.  For example, a divisional multilevel sales organization.9 9
  10. 10.  A level represents a position in a hierarchy. For example, a time dimension might have a hierarchy that represents data at the month, quarter, and year levels.  Within a hierarchy, each level is logically connected to the levels above and below it. years time day week month quarter year 1 1 1 1 2000 2 1 1 1 2000 3 1 1 1 2000 quarters 4 1 1 1 2000 5 1 1 1 2000 6 1 1 1 2000 7 1 1 1 2000 months 8 2 1 1 2000 10
  11. 11.  The levels in a dimension are organized into one or more hierarchies. years months quarters weeks months 11
  12. 12.  Levels range from general to specific, with the root level as the highest or most general level. all years weeks quarters months days 12
  13. 13.  Level relationships specify top-to-bottom ordering of levels from most general (the root) to most specific information.  They define the parent-child relationship between the levels in a hierarchy. 13
  14. 14. store city region sType tId size location t1 small downtownstore storeId cityId tId mgr t2 large suburbs s5 sfo t1 joe s7 sfo t2 fred city cityId pop regId s9 la t1 nancy sfo 1M north la 5M south region regId name north cold region south warm region 14
  15. 15.  The Data Warehouse Toolkit.Second Edition.The Complete Guide to Dimensional Modeling.Ralph Kimball.Margy Ross

×