OLAP
OLAP
E.g. OLAP technology could provide management with fast answers to complex
queries on their operational data or enable them to analyze their company’s
historical data for trends and patterns.
Online Analytical Processing (OLAP) applications and tools are those that are
designed to ask ―complex queries of large multidimensional collections of data.‖
Due to that OLAP is accompanied with data warehousing.
Need
The key driver of OLAP is the multidimensional nature of the business problem.
These problems are characterized by retrieving a very large number of records that
can reach gigabytes and terabytes and summarizing this data into a form
information that can by used by business analysts.
One of the limitations that SQL has, it cannot represent these complex problems.
A query will be translated in to several SQL statements. These SQL statements will
involve multiple joins, intermediate tables, sorting, aggregations and a huge
temporary memory to store these tables.
These procedures required a lot of computation which will require a long time in
computing.
The second limitation of SQL is its inability to use mathematical models in these
SQL statements. If an analyst, could create these complex statements using SQL
statements, still there will be a large number of computation and huge memory
needed.
Therefore the use of OLAP is preferable to solve this kind of problem.
Relational OLAP
ROLAP servers are placed between relational back-end server and client front-end tools.
To store and manage warehouse data, ROLAP uses relational or extended-relational
DBMS.
ROLAP includes the following −
Multidimensional OLAP
MOLAP uses array-based multidimensional storage engines for multidimensional views
of data. With multidimensional data stores, the storage utilization may be low if the data
set is sparse. Therefore, many MOLAP server use two levels of data storage
representation to handle dense and sparse data sets.
Hybrid OLAP
Hybrid OLAP is a combination of both ROLAP and MOLAP. It offers higher scalability of
ROLAP and faster computation of MOLAP. HOLAP servers allows to store the large data
volumes of detailed information. The aggregations are stored separately in MOLAP
store.
OLAP Operations
Since OLAP servers are based on multidimensional view of data, we will discuss OLAP
operations in multidimensional data.
Here is the list of OLAP operations −
• Roll-up
• Drill-down
• Slice and dice
• Pivot (rotate)
Roll-up
Roll-up performs aggregation on a data cube in any of the following ways −
Pivot
The pivot operation is also known as rotation. It rotates the data axes in view in order to
provide an alternative presentation of data. Consider the following diagram that shows
the pivot operation.