Professional Documents
Culture Documents
Data Warehousing & Mining Lab Lab Code: CSL503: Experiment 3
Data Warehousing & Mining Lab Lab Code: CSL503: Experiment 3
Experiment 3
Aim: To implement OLAP operations: Slice, Dice, Roll up, Drill down, and Pivot based on
experiment 1 case study.
Theory:
1. Roll up (drill-up):
Pune
Sangali
Q1
Q2
Q3
Time Q4
(Quarters)
S S S S
1 2 3 4
TE-B-62-Jaydip Pawar
In drill-down operation, the less detailed data is converted into highly detailed
data. It can be done by:
Moving down in the concept hierarchy
Adding a new dimension
In the cube given in overview section, the drill down operation is performed by
moving down in the concept hierarchy of Time dimension (Quarter -> Month).
Khed
Ane
(Villages) Jat
Atpadi
Time
(Months)
S S S S
1 2 3 4
TE-B-62-Jaydip Pawar
3. Slicing:
It selects a single dimension from the OLAP cube which results in a new sub-cube
creation. In the cube given in the overview section, Slice is performed on the
dimension Time = “Q1”.
Khed
Ane
Jat
Location
(Villages) Atpadi
S S S S
1 2 3 4
TE-B-62-Jaydip Pawar
4. Dicing:
It selects a sub-cube from the OLAP cube by selecting two or more dimensions. In
the cube given in the overview section, a sub-cube is selected by selecting
following dimensions with criteria:
Location = “Khed” or “Ane”
Time = “Q1” or “Q2”
Device = “S1” or “S2”
Location
Khed
(Villages)
Ane
Q1
Time Q2
(Quarters)
S1 S2
TE-B-62-Jaydip Pawar
5.Pivot
S1
S2
S3
S4
Location
(Villages)
TE-B-62-Jaydip Pawar