Understanding Multi Dimensional Database: Prepared By: Amit Sharma Hyperion/OBIEE Trainer
Understanding Multi Dimensional Database: Prepared By: Amit Sharma Hyperion/OBIEE Trainer
Understanding Multi Dimensional Database: Prepared By: Amit Sharma Hyperion/OBIEE Trainer
Architecture Architecture
Characteristics Characteristics
Fact table
Dimensions
(n a star schema) a dimension table will not ha$e an& arent table.
4hereas in a snow !la/e schema) a dimension table will ha$e one or
more arent tables.
1ierarchies !or the dimensions are stored in the dimensional table itsel!
in star schema.
i
o
n
Month
Dimensions: Product, Location, Time
Hierarchical summarization paths
Industry Region Year
Category Country Quarter
Product City onth !ee"
#$$ice Day
A Sample Data )ube
Total annual sales
o$ T% in &'(')'
Date
P
r
o
d
u
c
t
C
o
u
n
t
r
y
sum
sum
"V
VC(
%C
)*tr
+*tr
,*tr
-*tr
..S.A
Canada
Mexico
sum
A Sample Data )ube
Total annual sales
o$ T% in &'(')'
Date
P
r
o
d
u
c
t
C
o
u
n
t
r
y
sum
sum
"V
VC(
%C
)*tr+*tr
,*tr-*tr
..S.A
Canada
Mexico
sum
E//0a/e
Sale/ Manaer *tr) *tr+ *tr, *tr-
(ales (ales (ales (ales
*ohn Ne1 2or$ )333 )333 )333 )333
Cali!ornia +33 +33 +33 +33
"exa/ 4,--4 4,--4 4,--4 4,--4
5hio 44,, 44,, 44,, 44,,
6llnoi/ ,-44 ,-44 ,-44 ,-44
*tr) *tr+ *tr, *tr-
ac Ne1 2or$
Cali!ornia
"exa/
5hio ,33
6llnoi/
Star S#hema
A single !act table and !or each dimension one dimension table
Does not cature hierarchies directl&
*+amle o! Star Schema" Figure 8.9
(n the e+amle) sales !act table is connected to dimensions
location) roduct) time and organi.ation. (t shows that data can be
sliced across all dimensions and again it is ossible !or the data to
be aggregated across multile dimensions. :Sales dollar: in sales
!act table can be calculated across all dimensions indeendentl& or
in a combined manner which is e+lained below.
Sales dollar $alue !or a articular roduct
Sales dollar $alue !or a roduct in a location
Sales dollar $alue !or a roduct in a &ear within a location
Sales dollar $alue !or a roduct in a &ear within a location sold
or ser$iced b& an emlo&ee
E/ample o0 Star S#hema
time_$ey
day
day_o!_the_1ee$
month
7uarter
year
time
location_$ey
/treet
city
province_or_/treet
country
location
Sale/ #act "a0le
time_$ey
item_$ey
0ranch_$ey
location_$ey
unit/_/old
dollar/_/old
av_/ale/
Mea/ure
/
item_$ey
item_name
0rand
type
/upplier_type
item
0ranch_$ey
0ranch_name
0ranch_type
0ranch
Aggregation
Man& OLAP 7ueries in$ol$e aggregation o! the data in the !act
table
For e+amle) to !ind the total sales #o$er time% o! each roduct in
each mar/et) we might use
S*L*C' S.Mar/et3(d) S.Product3(d) S6M #S.Sales3Amt%
FROM Sales S
;RO6P 2< S.Mar/et3(d) S.Product3(d
'he aggregation is o$er the entire time dimension and thus
roduces a two5dimensional $iew o! the data
Aggregation O%er ime
'he outut o! the re$ious 7uer&
S6M#Sales_Amt% M1 M2 M3 M4
P1
3553 1653
7
P2
8553 2452
7
P3
4653 3
7
P4
9653 9555
7
P6 7 7 7
Market_Id
P
r
o
d
u
c
t
_
I
d
ypi#al O,AP
Operations
Roll u #drill5u%" summari.e data
Sales Channel
Region
Country
State
Location Address
Sales Representative
R
o
l
l
6
1igher Le$el o!
Aggregation
Low5le$el
Details
D
r
i
l
l
5
D
o
w
n
;Sli#ing and Di#ing<
Produ#t
Sales )hannel
$
e
g
i
o
n
s
Retail Direct Secial
1ousehold
'elecomm
Video
Audio
(ndia
Far *ast
*uroe
'he 'elecomm Slice
Sno"0la.e S#hema
A snow!la/e schema is a term that describes a star schema
structure normali.ed through the use o! outrigger tables. i.e
dimension table hierarchies are bro/en into simler tables. (n
star schema e+amle we had A dimensions li/e location) roduct)
time) organi.ation and a !act table #sales%
Sno"0la.e s#hema
Reresent dimensional hierarch& directl& b& normali.ing tables.
*as& to maintain and sa$es storage
*+amle o! Snow!la/e
Schema
E/ample o0 Sno"0la.e S#hema
time_$ey
day
day_o!_the_1ee$
month
7uarter
year
time
location_$ey
/treet
city_$ey
location
Sale/ #act "a0le
time_$ey
item_$ey
0ranch_$ey
location_$ey
unit/_/old
dollar/_/old
av_/ale/
Mea/ure
/
item_$ey
item_name
0rand
type
/upplier_$ey
item
0ranch_$ey
0ranch_name
0ranch_type
0ranch
/upplier_$ey
/upplier_type
/upplier
city_$ey
city
province_or_/treet
country
city
THANK YOU
o learn more about hyperion
please %isit
http://learnhyperion!"ordpress!#o
m