multidimentional data model

18
PRESENTATION ON MULTIDIMENSIONAL DATA MODEL Jagdish Suthar B. Tech. Final Year Computer Science and Engineering Jodhpur National university, Jodhpur 1

Upload: jagdish93

Post on 06-May-2015

14.554 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Multidimentional data model

PRESENTATION ON

MULTIDIMENSIONAL DATA MODEL

Jagdish Suthar B. Tech. Final Year

Computer Science and Engineering

Jodhpur National university, Jodhpur

1

Page 2: Multidimentional data model

MULTIDIMENSIONAL DATA MODEL(MDDM)

Content:- 1. Introduction of MDDM.

2. Component of MDDM.

3. Types of MDM.

[A]. Data Cube Model.

[B]. Star Schema Model.

[C]. Snow Flake Schema Model.

[D]. Fact Constellations.

2

Page 3: Multidimentional data model

INTRODUCTION MDDM

The Dimensional Model was Developed for

Implementing data warehouse and data marts.

MDDM provide both a mechanism to store data

and a way for business analysis.

3

Page 4: Multidimentional data model

COMPONENT OF MDDM

The two primary component of dimensional

model are Dimensions and Facts.

Dimensions:- Texture Attributes to analyses

data.

Facts:- Numeric volume to analyze business.

4

Page 5: Multidimentional data model

TYPES OF MDDM

[A]. Data Cube Model.

[B]. Star Schema Model.

[C]. Snow Flake Schema Model.

[D]. Fact Constellations.

5

Page 6: Multidimentional data model

DATA CUBE DIMENSIONAL

MODEL

When data is grouped or combined together in

multidimensional matrices called Data Cubes.

In Two Dimension :- row & Column or Products &fiscal

quarters.

In Three Dimension:- one regions, products and fiscal

quarters.

6

Page 7: Multidimentional data model

CONT.…….

Changing from one dimensional hierarchy to another

is early accomplished in data cube by a technique called

piroting (also known rotation).

7

Page 8: Multidimentional data model

CONT.…

These types of models are applied to hierarchical view such

as Role –up Display and Drill Down Display.

Role-up Display:-

when role up operation is performed by dimension reduction

one or more dimension are remove from dimension cube.

with role of capability uses can zoom out to see a

summarized level of data.

The navigation path is determined by hierarchy with in

dimension.

Drill-down Display :-

It is reverse of role up.

It navigate from less detailed data to more detailed data.

It can also be performs by adding new dimension to a cube.

8

Page 9: Multidimentional data model

CONT..

The MDDM involve two types of tables:-

1. Dimension Table: -

Consists of tupple of attributes of dimension.

It is Simple Primary Key.

2. Fact Table:-

A Fact table has tuples, one per a recorded fact.

It is Compound primary key.

9

Page 10: Multidimentional data model

STAR SCHEMA MODEL

It is also known as Star Join Schema.

It is the simplest style of data warehouse schema.

It is called a Star Schema because the entity relationship

diagram of this Schema resembles a star, with points

radiating from central table.

A star query is a join between a fact table and a no. of

dimension table.

Each dimension table is joined to the fact table using

primary key to foreign key join but dimension table are

not joined to each other.

A typical fact table contain key and measure.

10

Page 11: Multidimentional data model

CONT.….

Example of Star Schema:-

Time_key

Item_key

Branch_Key

Location_key

Unit_sold

Dollar_sold

Average_sales

Time_key

Day

Day of Week

Month

Quarter

Year

Time

Branch_Key

Branch_name

Branch type

Branch

Item_key

Item_name

Brand

Types

Suppiler_types

Item

Location_key

Street

City

State

Country

Location

Measure

Sales Fact

Table

Fig.:-Star Schema model 11

Page 12: Multidimentional data model

CONT..

Advantage of Star Schema Model:-

Provide highly optimized performance for typical star

queries.

Provide a direct and intuitive mapping b/w the

business entities being analyzed by end uses and the

schema design.

12

Page 13: Multidimentional data model

SNOW FLAKE SCHEMA

It is slightly different from a star schema in which the

dimensional tables from a star schema are organized

into a hierarchy by normalizing them.

The Snow Flake Schema is represented by centralized

fact table which are connected to multiple dimensions.

The Snow Flaking effecting only affecting the

dimension tables and not the fact tables.

13

Page 14: Multidimentional data model

CONT.….

Example of Snow Flake Schema:-

Time_key

Item_key

Branch_Key

Location_key

Unit_sold

Dollar_sold

Average_sales

Time_key

Day

Day of

Week

Month

Quarter

Year

Time

Branch_Key

Branch_name

Branch type

Item_key

Item_name

Brand

Types

Suppiler_types

Branch

Item

Location_key

Street

City _key

Location

Measures

Sales Fact

Table

Supplier_key

Supplier_type

Supplier

City_key

City

State

Country

City

Fig.:-Snow Flake Schema model 14

Page 15: Multidimentional data model

CONT..

Benefits of Snow flaking:-

It is Easier to implement a snow flak Schema when a

multidimensional is added to the typically normalized

tables.

A Snow flake schema can reflect the same data to the

database.

Difference b/w Star schema and Snow Flake:-

Star Schema Snow Flake

Star Schema dimension are

De normalized with each

dimension being

represented in single table.

Snow flake Schema

dimension are normalized

into multiple related

tables.

15

Page 16: Multidimentional data model

FACT CONSTELLATIONS

It is set of fact tables that share some dimensions

tables.

It limits the possible queries for the data warehouse.

Product

Quarter

Region

Revenue

Fact Table-

1

Product

Future

Quarter

Region

Projected

Revenue

Fact Table-

2

Product No.

Product Name

Product Design

Product Style

Product Line

Dimension Table

Business Result

Product Business

Forecast Fig.:-Fact Constellations

16

Page 17: Multidimentional data model

REFERENCES:-

Data Mining & Warehousing-Saumya Bajpai.

(Ashirwad Publication ,Jaipur)

https://www.google.com

http://en.wikipedia.org/wiki/Dimensional_modeling http://www.cs.man.ac.uk/~franconi/teaching/2001/CS636/CS6

36-olap.ppt Data Warehouse Models and OLAP Operations, by Enrico

Franconi

17

Page 18: Multidimentional data model

THE END

18