1 / 18

Multidimensional Modeling in Data warehouses

Multidimensional Modeling in Data warehouses. Shilpa Seth. To Be Discussed. Multidimensional Data Model Concepts Data Cube Data warehouse Schemas - Star Schema - Snowflake Schema - Fact Constellation Schema. MULTIDIMENSIONAL DATA MODELS.

tyra
Download Presentation

Multidimensional Modeling in Data warehouses

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. Multidimensional Modeling in Data warehouses Shilpa Seth

  2. To Be Discussed.. • Multidimensional Data Model Concepts • Data Cube • Data warehouse Schemas - Star Schema - Snowflake Schema - Fact Constellation Schema

  3. MULTIDIMENSIONAL DATA MODELS A data warehouse is based on a multidimensional data model which views data in the form of a DataCube. A data cube, such as sales, allows data to be modeled and viewed in multiple dimensions. Dimension tables, such as time (month, quarter, year) Fact table contains measures (such as units, price) and keys to each of the related dimension tables.

  4. Dimensions: Product, Store, Time Hierarchical summarization paths Store Brand Region Year Product Country Quarter Type State Month Week City Day Product Time Multidimensional Data • Sales volume as a function of product, month, and region.

  5. Dimensions and Facts • Dimensions are entities or perspective with respect to which an organization wants to keep records. • Facts are numerical measures. Back

  6. Time(months) ∑ 2 3 4 5 milk Product cheese Toronto eggs. Vancouver Store Victoria ∑ ∑ ∑ ∑ ∑ ∑ Sample Data Cube Multidimensional viewofsales data

  7. Cube: A Lattice of Cuboids In data warehousing literature, an n-D base cube is called a Base cuboid. The top most 0-D cuboid, which holds the highest-level of summarization, is called the Apex cuboid. The lattice of cuboids forms a Data Cube.

  8. Cuboids Corresponding to the Cube all 0-D(apex) cuboid product store 1-D cuboids time product, store 2-D cuboids store, time product, time 3-D(base) cuboid product, store, time Back

  9. DATA WAREHOUSE SCHEMAS • Star Schema • Snowflake Schema • Fact Constellation Schema

  10. Sales Data Warehouse Model Time Sales fact Store City Product

  11. Sales Measures & Dimensions • Measures– Units , Price. • Dimensions – Product, Time, Store.

  12. Star Schema • A single , large and central fact table and one table for each dimension. • Every fact points to one tuple in each of the dimensions and has additional attributes. • Star Schema makes heavy use of denormalization to optimize for speed, at a potential cost of storage space.

  13. Star Schema Sales Fact Table Store Dimension Time Dimension Measures Product Dimension Back

  14. SnowFlake Schema • Variant of star schema model. • A single , large and central fact table and one or more tables for each dimension. • Dimension tables are normalized i.e. split dimension table data into additional tables.

  15. Snow Flake Schema Sales Fact Table Time Dimension Store Dimension Product Dimension Back City Dimension

  16. Fact Constellation Schema (Galaxy Schema) • Multiple fact tables share dimension tables. • This schema is viewed as collection of stars hence called galaxy schema or fact constellation. • Sophisticated application requires such schema.

  17. Fact Constellation Sales Fact Table Shipping Fact Table Product Dimension Shipper Time Dimension Store Dimension Back

  18. THANKS..... Back

More Related