OLAP Operations in DBMS (original) (raw)

Last Updated : 3 Nov, 2025

OLAP (Online Analytical Processing) is a software technology that enables users to analyze data from multiple database systems simultaneously. It is based on a multidimensional data model, where data is represented in the form of cubes, also known as hyper-cubes. Each cube consists of dimensions (e.g., Location, Time, Product) and measures (e.g., Sales, Profit).

frame_3295

OLAP Operations

**Note: OLAP is widely used in data warehousing and business intelligence systems to support analytical queries, trend analysis, and decision-making.

Key OLAP Operations

OLAP supports five fundamental analytical operations that allow users to view data from different perspectives and levels of detail:

1. Drill Down

frame_3296

Drill Down

**Example: Viewing sales data for 2024 -> Q1 -> January instead of only yearly totals.

2. Roll Up

frame_3295

Roll Up

**Example: Aggregating sales data from City -> Country or from Month -> Quarter.

3. Slice

frame_3293

Slice

**Example: Selecting Time = "Q1" to analyze sales across all products and regions for the first quarter.

4. Dice

frame_3294

Dice

**Example: Selecting: Location = "Delhi" or "Kolkata", Time = "Q1" or "Q2" & Item = "Car" or "Bus"

5. Pivot (Rotation)

frame_3292

Pivot (Rotation)

**Example: Swapping the Time and Location axes to compare sales by quarter across different regions.