Lecture 9 OLAP
Lecture 9 OLAP
Topic-9
OLAP (online analytical processing)
Program Name:B.Tech(CSE)
Objective
• OLAP databases are divided into one or more cubes. The cubes are designed in
such a way that creating and viewing reports become easy. OLAP stands for
Online Analytical Processing.
❑ OLAP cube:
❑ Roll-up
• Roll-up is also known as "consolidation" or "aggregation. this operation
summarizes the data along the dimension.
• In this example, cities New jersey and Lost Angles and rolled up
into country USA
• The sales figure of New Jersey and Los Angeles are 440 and 1560
respectively. They become 2000 after roll-up
• In this aggregation process, data is location hierarchy moves up
from city to the country.
• In the roll-up process at least one or more dimensions need to be
removed. In this example, Cities dimension is removed.
❑ Drill-down
• In drill-down data is fragmented into smaller parts. It is the opposite of
the rollup process.
• Consider the diagram above
• Quarter Q1 is drilled down to months January, February, and
March. Corresponding sales are also registers.
• In this example, dimension months are added.
❑ Slice:
• Here, one dimension is selected, and a new sub-cube is created.
• Dimension Time is Sliced with Q1 as the filter.
• A new cube is created altogether.
❑ Dice:
• This operation is similar to a slice. The difference in dice is you select 2
or more dimensions that result in the creation of a sub-cube.
• Dimension Time is Sliced with Q1 as the filter.
• A new cube is created altogether.
❑ Pivot:
• Analysts can gain a new view of data by rotating the data axes of the
cube.
❑ Advantages of OLAP
• OLAP is a platform for all type of business includes planning, budgeting, reporting,
and analysis.
• Information and calculations are consistent in an OLAP cube. This is a crucial benefit.
• Quickly create and analyze "What if" scenarios
• Easily search OLAP database for broad or specific terms.
• OLAP provides the building blocks for business modeling tools, Data mining tools,
performance reporting tools.
• Allows users to do slice and dice cube data all by various dimensions, measures, and
filters.
• It is good for analyzing time series.
• Finding some clusters and outliers is easy with OLAP.
• It is a powerful visualization online analytical process system which provides faster
response times
Program Name: B.Tech (CSE)
OLAP (online analytical processing)
❑ Disadvantages of OLAP
• OLAP requires organizing data into a star or snowflake schema. These
schemas are complicated to implement and administer
• Any modification in an OLAP cube needs a full update of the cube. This is a
time-consuming process