Notes On OLAP
Notes On OLAP
Notes On OLAP
Example of OLAP
Any Data warehouse system is an OLAP system. Uses of OLAP are as follows
• A company might compare their mobile phone sales in September with sales
in October, then compare those results with another location which may be
stored in a separate database.
• Amazon analyzes purchases by its customers to come up with a personalized
homepage with products which likely interest to their customer.
• OLAP creates a single platform for all type of business analytical needs which
includes planning, budgeting, forecasting, and analysis.
• The main benefit of OLAP is the consistency of information and calculations.
• Easily apply security restrictions on users and objects to comply with
regulations and protect sensitive data.
What is MOLAP?
MOLAP Architecture
• Database server.
• MOLAP server.
• Front-end tool.
MOLAP Architecture
MOLAP architecture mainly reads the precompiled data. MOLAP architecture has
limited capabilities to dynamically create aggregations or to calculate results that
have not been pre-calculated and stored.
For example, an accounting head can run a report showing the corporate P/L
account or P/L account for a specific subsidiary. The MDDB would retrieve
precompiled Profit & Loss figures and display that result to the user.
Implementation considerations in MOLAP
MOLAP Advantages
MOLAP Disadvantages
OLAP Operations
Since OLAP servers are based on multidimensional view of data, we will discuss
OLAP operations in multidimensional data.
• Roll-up (Consolidation)
• Drill-down
• Slice and dice
• Pivot (Rotation)
Roll-up
Roll-up operation performs aggregation on a data cube in any of the following ways −
Drill-down
Drill-down is the reverse operation of roll-up. It is performed by either of the following
ways −
• By stepping down a concept hierarchy for a dimension
• By introducing a new dimension.
Initially the concept hierarchy was "day < month < quarter < year."
On drilling down, the time dimension is descended from the level of quarter to the
level of month.
When drill-down is performed, one or more dimensions from the data cube are
added?
It navigates the data from less detailed data to highly detailed data.
Slice
The slice operation selects one particular dimension from a given OLAP cube and
provides a new sub-cube. Consider the following diagram that shows how slice
works.
Here Slice is performed for the dimension "time" using the criterion time = "Q1".
Dice
Dice selects two or more dimensions from a given cube and provides a new sub-
cube. Consider the following diagram that shows the dice operation.
The dice operation on the cube based on the following selection criteria involves
three dimensions.
• (location = "Toronto" or "Vancouver")
• (time = "Q1" or "Q2")
• (item =" Mobile" or "Modem")
Pivot (Rotation)
The pivot operation is also known as rotation. It rotates the data axes to view in order
to provide an alternative presentation of data. Consider the following diagram that
shows the pivot operation, giving a new view of it.