You are on page 1of 54

Orderly Approach for DWH construction

2/23/2012 3.Planning & Project management/D.S.Jagli 1


Topics to be covered
How is it different? .1
Life-cycle approach .2
The Development Phases .3
Dimensional Analysis .4
Dimensional Modeling .5
Star Schema .i
Snowflake Scheme .ii

2/23/2012 3.Planning & Project management/D.S.Jagli 2


3.Planning & Project management
Reasons for DWH projects failure 
Improper planning .1
Inadequate project management .2
Planning for Data ware house is necessary. 
Key issues needs to be planned .I
Value and expectation .1
Risk assessment .2
Top-down or bottom –up .3
Build or Buy .4
Single vender or best of breed .5
Business requirement ,not technology .II
Top management support .III
Justification .IV
2/23/2012 3.Planning & Project management/D.S.Jagli 3
3.Planning & Project management
Example for DWH Project 
1. Introduction
2. Outlinestatement
Mission for overall plan
3. Scope
4. Goals& objectives
5. Key issues & Options
6. Value & expectations
7. Justification
8. Executive sponsorship
9. Implementation
Strategy
10. Tentative schedule
11. Project authorization
2/23/2012 3.Planning & Project management/D.S.Jagli 4
3.1 How is it different?
DWH Project Different from OLTP System Project 
DWH Distinguish features and Challenges for Project 
Management
Data Acquisition .1
Data Storage .2
Information Delivery .3

2/23/2012 3.Planning & Project management/D.S.Jagli 5


2/23/2012 3.Planning & Project management/D.S.Jagli 6
3.2 The life-cycle Approach
Fig: DW functional components and SDLC

2/23/2012 3.Planning & Project management/D.S.Jagli 7


DWH Project Plan: Sample outline

2/23/2012 3.Planning & Project management/D.S.Jagli 8


3.3 DWH
Development
Phases

2/23/2012 3.Planning & Project management/D.S.Jagli 9


3.3 DWH Development Phases
Project plan (1
Requirements definition (2
Design (3
Construction (4
Deployment (5
Growth and maintenance (6

Interleaved within the design and construction phases are the three 
tracks along with the definition of the architecture and the
establishment of the infrastructure.

2/23/2012 3.Planning & Project management/D.S.Jagli 10


3.4 Dimensional Analysis

A data warehouse is an information delivery system. 

It is not about technology, but about solving users’ problems. 

It is providing strategic information to the user. 

In the phase of defining requirements, need to concentrate on 


what information the users need, not on how we are going to
provide the required information.
2/23/2012 3.Planning & Project management/D.S.Jagli 11
Dimensional Nature of DWH
Usage of Information Unpredictable .1
In providing information about the requirements for an operational 
system, the users are able to give you precise details of the required
functions, information content, and usage patterns.

Dimensional Nature of Business Data .2


Even though the users cannot fully describe what they want in a data 
warehouse, they can provide you with very important insights into
how they think about the business.

2/23/2012 3.Planning & Project management/D.S.Jagli 12


Managers think in business dimensions : example

2/23/2012 3.Planning & Project management/D.S.Jagli 13


Dimensional Nature of Business Data

2/23/2012 3.Planning & Project management/D.S.Jagli 14


Dimensional Nature of Business Data

2/23/2012 3.Planning & Project management/D.S.Jagli 15


Examples of Business Dimensions

2/23/2012 3.Planning & Project management/D.S.Jagli 16


Examples of Business Dimensions

2/23/2012 3.Planning & Project management/D.S.Jagli 17


INFORMATION PACKAGES—A NEW
CONCEPT
A novel idea is introduced for determining and recording information 
requirements for a data warehouse.

This concept helps us to give 


A concrete form to the various insights, nebulous thoughts, •
opinions expressed during the process of collecting requirements.

The information packages, put together while collecting requirements, are 


very useful for taking the development of the data warehouse to the next
phases.

2/23/2012 3.Planning & Project management/D.S.Jagli 18


Requirements Not Fully Determinate
Information packages enable us to: 
Define the common subject areas .1
Design key business metrics .2
Decide how data must be presented .3
Determine how users will aggregate or roll up .4
Decide the data quantity for user analysis or query .5
Decide how data will be accessed .6
Establish data granularity .7
Estimate data warehouse size .8
Determine the frequency for data refreshing .9
Determine how information must be packaged .10

2/23/2012 3.Planning & Project management/D.S.Jagli 19


An information package.

2/23/2012 3.Planning & Project management/D.S.Jagli 20


Business Dimensions
Business dimensions form the underlying basis of the new 
methodology for requirements definition.

Data must be stored to provide for the business dimensions. 

The business dimensions and their hierarchical levels form the 


basis for all further phases.

2/23/2012 3.Planning & Project management/D.S.Jagli 21


Dimension Hierarchies/Categories
Examples: 
Product: Model name, model year, package styling, product line, product category, (1
exterior color, interior color, first model year

Dealer: Dealer name, city, state, single brand flag, date first operation (2

Customer demographics: Age, gender, income range, marital status, household (3


size, vehicles owned, home value, own or rent

Payment method: Finance type, term in months, interest rate, agent (4

Time: Date, month, quarter, year, day of week, day of month, season, holiday flag (5

2/23/2012 3.Planning & Project management/D.S.Jagli 22


Key Business Metrics or Facts
The numbers , users analyze are the measurements or metrics 
that measure the success of their departments.

These are the facts that indicate to the users how their 
departments are doing in fulfilling their departmental
objectives.

2/23/2012 3.Planning & Project management/D.S.Jagli 23


Example: automobile sales
The set of meaningful and useful metrics for analyzing 
automobile sales is as follows:
Actual sale price 
MSRP sale price 
Options price 
Full price 
Dealer add-ons 
Dealer credits 
Dealer invoice 
Amount of down payment 
Manufacturer proceeds 
Amount financed 
2/23/2012 3.Planning & Project management/D.S.Jagli 24
Star Schema
Snowflake Scheme

2/23/2012 3.Planning & Project management/D.S.Jagli 25


FROM REQUIREMENTS TO DATA
DESIGN
The requirements definition completely drives the data design for the data .1
warehouse.

A group of data elements form a data structure. .2

Logical data design includes determination of the various data elements .3


,structures of data & establishing the relationships among the data
structures.

The information package diagrams form the basis for the logical data .4
design for the data warehouse.

The data design process results in a dimensional data model. .5

2/23/2012 3.Planning & Project management/D.S.Jagli 26


FROM REQUIREMENTS TO DATA DESIGN

2/23/2012 3.Planning & Project management/D.S.Jagli 27


Dimensional Modeling Basics: Formation of the automaker sales
fact table.

2/23/2012 3.Planning & Project management/D.S.Jagli 28


Formation of the automaker dimension tables.

2/23/2012 3.Planning & Project management/D.S.Jagli 29


Concept of Keys for Dimension table
Surrogate Keys
A surrogate key is the primary key for a dimension table and .1
is independent of any keys provided by source data systems.
Surrogate keys are created and maintained in the data .2
warehouse and should not encode any information about the
contents of records.
Automatically increasing integers make good surrogate keys. .3
The original key for each record is carried in the dimension .4
table but is not used as the primary key.
Surrogate keys provide the means to maintain data warehouse .5
information when dimensions change.

30
Concept of Keys for Dimension table
Business Keys
Natural keys 
Will have a meaning and can be generated out of the data from source 
system or can be used as is from source system field

31
The criteria for combining the tables into a
dimensional model.
The model should provide the best data access. .1
The whole model must be query-centric. .2
It must be optimized for queries and analyses. .3
The model must show that the dimension tables interact with .4
the fact table.
It should also be structured in such a way that every .5
dimension can interact equally with the fact table.
The model should allow drilling down or rolling up along .6
dimension hierarchies.

2/23/2012 3.Planning & Project management/D.S.Jagli 32


The Dimensional model :a STAR schema
With these requirements, we find that a dimensional 
model with the fact table in the middle and the dimension
tables arranged around the fact table satisfies the condition

2/23/2012 3.Planning & Project management/D.S.Jagli 33


Case study: STAR schema for automaker
sales.

2/23/2012 3.Planning & Project management/D.S.Jagli 34


E-R Modeling Versus Dimensional
Modeling
OLTP systems capture details of .1
events transactions DW meant to answer questions on .1
overall process
OLTP systems focus on .2
individual events DW focus is on how managers .2
view the business
An OLTP system is a window .3
into micro-level transactions DW focus business trends .3
Picture at detail level necessary .4 Information is centered around a .4
to run the business business process
Suitable only for questions at .5 Answers show how the business .5
transaction level measures the process
Data consistency, non- .6 The measures to be studied in .6
redundancy, and efficient data many ways along several business
storage critical dimensions

2/23/2012 3.Planning & Project management/D.S.Jagli 35


E-R Modeling Versus Dimensional
Modeling
Dimensional modeling for the data
E-R modeling for OLTP warehouse.
systems

2/23/2012 3.Planning & Project management/D.S.Jagli 36


2/23/2012 3.Planning & Project management/D.S.Jagli 37
Star Schemas
Data Modeling Technique to map multidimensional decision 
support data into a relational database.

Current Relational modeling techniques do not serve the needs 


of advanced data requirements.
4 Components 
Facts 
Dimensions 
Attributes 
Attribute Hierarchies 
2/23/2012 3.Planning & Project management/D.S.Jagli 38
Facts
Numeric measurements (values) that represent a specific .1
business aspect or activity.

Stored in a fact table at the center of the star scheme. .2

Contains facts that are linked through their dimensions. .3

Updated periodically with data from operational databases .4

2/23/2012 3.Planning & Project management/D.S.Jagli 39


Dimensions
Qualifying characteristics that provide additional .1
perspectives to a given fact

DSS data is almost always viewed in relation to other data 

Dimensions are normally stored in dimension tables .2

2/23/2012 3.Planning & Project management/D.S.Jagli 40


Attributes
Dimension Tables contain Attributes. .1

Attributes are used to search, filter, or classify facts. .2

Dimensions provide descriptive characteristics about the facts through .3


their attributed.

Must define common business attributes that will be used to narrow a .4


search, group information, or describe dimensions. (ex.: Time / Location /
Product).

No mathematical limit to the number of dimensions (3-D makes it easy to .5


model).
2/23/2012 3.Planning & Project management/D.S.Jagli 41
Attribute Hierarchies
Provides a Top-Down data organization .1
Aggregation 
Drill-down / Roll-Up data analysis 
Attributes from different dimensions can be grouped to .2
form a hierarchy

2/23/2012 3.Planning & Project management/D.S.Jagli 42


Concept of Keys for Star schema
Surrogate Keys
The surrogate keys are simply system-generated sequence numbers and is 
independent of any keys provided by source data systems.
They do not have any built-in meanings. 
Surrogate keys are created and maintained in the data warehouse and should not 
encode any information about the contents of records;
Automatically increasing integers make good surrogate keys. 
The original key for each record is carried in the dimension table but is not used 
as the primary key.
Business Keys
Primary Keys
Each row in a dimension table is identified by a unique value of an attribute 
designated as the primary key of the dimension.
Foreign Keys
Each dimension table is in a one-to-many relationship with the central fact table. 
So the primary key of each dimension table must be a foreign key in the fact
table.
43
Star Schema for Sales
Dimension
Tables

Fact Table
2/23/2012 3.Planning & Project management/D.S.Jagli 44
Star Schema Representation
Fact and Dimensions are represented by physical tables in the 
data warehouse database.

Fact tables are related to each dimension table in a Many to 


One relationship (Primary/Foreign Key Relationships).

Fact Table is related to many dimension tables 


The primary key of the fact table is a composite primary key 
from the dimension tables.

Each fact table is designed to answer a specific DSS question 

2/23/2012 3.Planning & Project management/D.S.Jagli 45


Star Schema
The fact table is always the larges table in the star schema. 

Each dimension record is related to thousand of fact records. 

Star Schema facilitated data retrieval functions. 

DBMS first searches the Dimension Tables before the larger 


fact table

2/23/2012 3.Planning & Project management/D.S.Jagli 46


Star Schema : advantages
Easy to understand .1
Optimizes Navigation .2
Most Suitable for Query Processing .3

2/23/2012 3.Planning & Project management/D.S.Jagli 47


2/23/2012 3.Planning & Project management/D.S.Jagli 48
THE SNOWFLAKE SCHEMA
Snowflaking” is a method of normalizing the dimension 
tables in a STAR schema.

2/23/2012 3.Planning & Project management/D.S.Jagli 49


Sales: a simple STAR schema.

2/23/2012 3.Planning & Project management/D.S.Jagli 50


Product dimension: partially normalized

2/23/2012 3.Planning & Project management/D.S.Jagli 51


When to Snowflake
The principle behind snowflaking is normalization of the 
dimension tables by removing low cardinality attributes and
forming separate tables.

In a similar manner, some situations provide opportunities to 


separate out a set of attributes and form a subdimension.

2/23/2012 3.Planning & Project management/D.S.Jagli 52


Advantages and Disadvantages
Advantages 
Small savings in storage space 
Normalized structures are easier to update and maintain 
Disadvantages 
Schema less intuitive and end-users are put off by the 
complexity
Ability to browse through the contents difficult 
Degraded query performance because of additional joins 

2/23/2012 3.Planning & Project management/D.S.Jagli 53


???
Thank you
2/23/2012 3.Planning & Project management/D.S.Jagli 54

You might also like