Multidimensional Data Model and OLAP
Multidimensional Data Model and OLAP
5. ROLAP
6. MOLAP
7. HOLAP
9. Conclusion
Data Marts
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Dimension tables
Time Info
...
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Star Schema
with Sample
Data
St o re Dime ns io n
STORE KEY Dis t ric t _ ID Re g io n_ ID
St o re De s c ript io n Dis t ric t De s c . Re g io n De s c .
Cit y Re g io n_ ID Re g io nal Mg r.
St at e
Dis t ric t ID
Dis t ric t De s c .
Re g io n_ ID
Re g io n De s c .
Re g io nal Mg r.
St o re Fac t Table Dis t ric t Fac t Table Re g io nFac t Table
Region_ID
STORE KEY District_ID
PRODUCT_KEY
PRODUCT_KEY PERIOD_KEY
PRODUCT KEY PERIOD_KEY Do llars
PERIOD KEY Do llars Unit s
Unit s Pric e
Do llars Pric e
Unit s
Pric e
Aggregation Contd …
St o re Dime ns io n
STORE KEY Dis t ric t _ ID Re g io n_ ID
St o re De s c ript io n Dis t ric t De s c . Re g io n De s c .
Cit y Re g io n_ ID Re g io nal Mg r.
St at e
Dis t ric t ID
Dis t ric t De s c .
Re g io n_ ID
Re g io n De s c .
Re g io nal Mg r.
St o re Fac t Table Dis t ric t Fac t Table Re g io nFac t Table
District_ID Region_ID
STORE KEY PRODUCT_KEY
PRODUCT_KEY PERIOD_KEY
PRODUCT KEY PERIOD_KEY Do llars
PERIOD KEY Do llars Unit s
Unit s Pric e
Do llars Pric e
Unit s
Pric e
Aggregates
· Add up amounts for day 1
· In SQL: SELECT sum(amt) FROM SALE
WHERE date = 1
Aggregates
· Add up amounts by day
· In SQL: SELECT date, sum(amt) FROM SALE
GROUP BY date
References
• http://dimlab.usc.edu/csci599/Fall2002/paper/I2_P064.pdf
– OLAP, Relational, and Multidimensional Database Systems, by George Colliat,
Arbor Software Corporation
• http://www.donmeyer.com/art3.html
– Data warehousing Services, Data Mining & Analysis, LLC
• http://www.cs.man.ac.uk/~franconi/teaching/2001/CS636/CS636-ol
ap.ppt
– Data Warehouse Models and OLAP Operations, by Enrico Franconi
• http://www.promatis.com/mediacenter/papers
- ROLAP, MOLAP, HOLAP: How to determine which to technology is
appropriate, by Holger Frietch, PROMATIS Corporation