Multidimensional schema of data warehouse

2,334 views 22 slides Oct 12, 2020
Slide 1
Slide 1 of 22
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22

About This Presentation

The subject is Database management and business intelligence DMBI. Types of multidimensional schemas - 3.


Slide Content

Multidimensional Schema of Data Warehouse Kunjan Shah 170 410 107 103 Batch C DMBI

What is Multidimensional schema? Schema is a logical description of the entire database. Designed to model data warehouse systems It includes the name and description of records of all record types including all associated data-items and aggregates. A database uses relational model, while a data warehouse uses Star, Snowflake, and Fact Constellation schema.

Types of Multidimensional Schemas Star Schema Snowflake Schema Fact Constellation Schema or Galaxy Schema

What is a Star Schema? The simplest type of Data Warehouse schema Structure resembles a star. Each dimension in a star schema is represented with only one-dimension table. This dimension table contains the set of attributes. There is a fact table at the center. It contains the keys to each of four dimensions.

Structure of Star Schema

Advantage of Star Schema Easy for Users to Understand Optimizes Navigation Most Suitable for Query Processing(against an OLTP system)

Disadvantages of Star Schema Data integrity is not enforced. Not as flexible in terms of analytical needs. Star schemas don’t reinforce many-to-many relationships within business entities – at least not frequently. Uses large disk space

What is Snowflake Schema? Represented by centralized fact tables which are connected to multiple dimensions tables. The principle behind snowflaking is normalization of the dimension tables by removing low cardinality attributes and forming separate tables. It normalizes dimensions to eliminate redundancy

Snowflake Schema

Advantages of Snowflake Schema Reduces the the problem of data integrity Uses small disk space Improvement in query performance Easy to understand.

Disadvantages of Snowflakes Schema Adds complexity to source query joins Additional maintenance efforts needed due to the increase number of lookup tables.

What is Galaxy or Fact constellation Schema? Combination other two schemas Constitutes of multiple fact tables sharing dimension tables.

Structure of Fact Constellation Schema

When to choose ? while introducing hierarchies in dimension. In order to deals with bigger dimension tables. helpful for aggregating fact tables.

Advantages of Fact Constellation Schema Provides a flexible schema. Improved data retrival Simplified business logic Better understanding Fast aggregation Extensibility

Disadvantages of Fact Constellation Schema difficult to maintain more complex than star and snowflake schemas

Real World Scenario Consider a database for a retailer that has many stores , with each store selling many products in many product categories and of various brands . A data warehouse or data mart for such a retailer would need to provide analysts the ability to run sales reports grouped by store, date (or month, quarter or year), or product category or brand.

When Using Star Schema

Sample Query SQL query to get number of products sold by country and brand, when the database uses a snowflake schema.

When Modeling with SnowFlake Schema

Query To Get Same Report

Thank You & Happy World Sleep Day !!