SlideShare a Scribd company logo
Data Analysis, OLAP
and
Extended Aggregate
Functions
Data Analysis
Data analysis is a process of inspecting, cleansing,
transforming, and modeling data with the goal of
discovering useful information, suggesting conclusions,
and supporting decision-making.
The Process
Of
Data Analysis
1. Data requirements
2. Data collection
3. Data processing
4. Data cleaning
5. Data analysis
6. Communication
CONT.
The Process Of Data Analysis
Online Analytical Process
OLAP (online analytical processing) is computer
processing that enables a user to easily and selectively
extract and view data from different points of view.
Online Analytical Process
● OLAP allows users to analyze database information
from multiple database systems at one time.
● OLAP data is multidimensional, meaning the
information can be compared in many different ways.
Types of
Online
Analytical
Process
1. Relational OLAP(ROALP):
Stored data in a relation data-base.
2. Multidimensional OLAP(MOLAP):
Implemented operation in multidimensional
data.
3. Hybrid Online Analytical
processing(HOLAP):
HOLAP store some summaries in memory and
store the base data and other summaries in a
relational database.
Online Analytical Process Impementation
Applications of OLAP
● Some popular OLAP server software programs include Oracle
Express Server and Hyperion Solutions Essbase . Because of its
powerful data analysis capabilities , OLAP processing is often used
for data mining, which aims to discover new relationships between
different sets of data.
Decision Support System
Decision support system (DSS) is a information system
that analyzes business data or organizational data and
presents it so that users can make business decisions
more easily.
CONT.
Decision Support System
● DSSs serve the management, operations and planning levels of
an organization and help organization to make decisions about
problems that may be rapidly changing and not easily specified
in advance.
● Decision support systems can be either fully computerized or
human-powered, or a combination of both.
Property of a Decision Support System
● DSS tends to be aimed at the less well structured,
underspecified problem that upper level managers typically
face.
● DSS attempts to combine the use of models or analytic
techniques with traditional data access and retrieval functions.
CONT.
Property of a Decision Support System
● DSS specifically focuses on features which make them easy to
use by non-computer-proficient people in an interactive mode.
● DSS emphasizes flexibility and adaptability to accommodate
changes in the environment and the decision making approach
of the user.
The users themselves are also important components of the architecture
Component of a Decision Support System
Three fundamental components of a DSS architecture are
1. Database .
2. Model.
3. User Interface.
Extended Aggregation
The SQL-92 aggregation functionality is limited. But, The
SQL-1999 Standard has a rich set of aggregation
functionality. Such as the generalization of group by
construct using cube and rollup construct.
CONT.
Extended Aggregation(Cube construct)
A representative use cube construct is :
select item_name,color
from sales
group by cube(item_name, color)
This query computes the union of 4 different groupings in sales relation:
{(item_name,color), (item_name), (color), {}}
CONT.
Extended Aggregation(Rollup construct)
A representative use rollup construct is :
select item_name,color
from sales
group by cube(item_name, color)
This query computes the union of 3 different groupings in sales relation:
{(item_name,color), (item_name), {}}
Ranking
Ranking is done in conjunction with an order by specification.
From a relation students_mark(id, marks) to store the students by their
obtained marks:
select id, rank() over(order by (marks) desc) as s.rank
from students_mark order by s.rank
Windowing
Windowing functions, which support summarization on moving windows.
A window function defines a frame or window of rows with a given length
around the current row, and performs a calculation across the set of data in the
window.
1. Defines window partitions to from groups of rows.(PARTITIONS BY CLAUSE)
2. Orders rows within a partition.(ORDER BY CLAUSE)
CONT.
Windowing
● SYNTAX
window_function(expression)over(
[PARTITION BY expr_list]
[ORDER BY order_list] [frame_clause])
● 1. OVER () is a mandatory clause that defines a window within a query
result set.OVER() is a subset of select and part of the aggregate function.
CONT.
Windowing
● 2. PARTITION BY clause subdivides the window into partitions.
Including the partition clause divides the query result set into partition and window
function is applied to each partition separately.
● 3.ORDER BY clause defines the logical order of the rows within each partition of the
result set, if no PARTITION BY is specified, ORDER BY uses the entire table.
● Windows functions are applied to the rows within each partition and stored
according to the order specification.
Thank You

More Related Content

What's hot (18)

PPTX
Dsa unit 1
thamizh arasi
 
PPTX
Data structures and algorithm
AhsanCheema4
 
PPT
Normalization
Masud Parves
 
PPTX
Adbms 6 three schema database architecture
Vaibhav Khanna
 
PPTX
Iteman. madiha
University of Education
 
PPTX
Adbms 23 distributed database design
Vaibhav Khanna
 
PPTX
Distributed database Project ppt
SEECS NUST
 
PPTX
Lecture 1
GloriaMmantianeManok
 
PPTX
Designing PrinciplesOf Software
Ankita Agrawal
 
PPTX
Data Flow Diagram
Shreya Chatterjee
 
PPT
Research Methodology
EvanNathan3
 
PDF
78307635 geometric-modeling-concepts
manojg1990
 
PPTX
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
Nidhi Kakani
 
PPTX
Data Flow Diagram and Sequence Diagram
Hamna Shahzad
 
PPTX
Rts methodologies(ward mellor methodology essential model)
Venkatesh Aithal
 
DOCX
Stata claass lecture
Akram Ali
 
PPT
Dfd mechanics
pushpender pandey
 
Dsa unit 1
thamizh arasi
 
Data structures and algorithm
AhsanCheema4
 
Normalization
Masud Parves
 
Adbms 6 three schema database architecture
Vaibhav Khanna
 
Iteman. madiha
University of Education
 
Adbms 23 distributed database design
Vaibhav Khanna
 
Distributed database Project ppt
SEECS NUST
 
Designing PrinciplesOf Software
Ankita Agrawal
 
Data Flow Diagram
Shreya Chatterjee
 
Research Methodology
EvanNathan3
 
78307635 geometric-modeling-concepts
manojg1990
 
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
Nidhi Kakani
 
Data Flow Diagram and Sequence Diagram
Hamna Shahzad
 
Rts methodologies(ward mellor methodology essential model)
Venkatesh Aithal
 
Stata claass lecture
Akram Ali
 
Dfd mechanics
pushpender pandey
 

Similar to Database Analysis, OLAP, Aggregate Functions (20)

PPSX
Analytic & Windowing functions in oracle
Logan Palanisamy
 
PPTX
Project report aditi paul1
guest9529cb
 
PPT
Introduction to OLAP and OLTP Concepts - DBMS
Vasudha Rao
 
PPT
Enabling Applications with Informix' new OLAP functionality
Ajay Gupte
 
PPT
ch19.ppt
Kalangivasavi
 
PPT
ch19.ppt
KARTHICKT41
 
PPTX
Olap, expert system, data visualisation
Talent Corner HR Services Pvt Ltd.
 
PPTX
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
 
PPTX
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
 
PDF
KScope19 - SQL Features
Connor McDonald
 
PPT
Business analysis
Dhilsath Fathima
 
PPTX
Data Analysis – Technical learnings
InvenkLearn
 
PPT
Olap Functions Suport in Informix
Bingjie Miao
 
PPTX
OLAP
Rashmi Bhat
 
PDF
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
Fabio Fumarola
 
PPTX
SQL Windowing
Sandun Perera
 
PPT
Complete unit ii notes
Benazir Fathima
 
PPT
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
PDF
_Super_Study_Guide__Data_Science_Tools_1620233377.pdf
nielitjanarthanam
 
Analytic & Windowing functions in oracle
Logan Palanisamy
 
Project report aditi paul1
guest9529cb
 
Introduction to OLAP and OLTP Concepts - DBMS
Vasudha Rao
 
Enabling Applications with Informix' new OLAP functionality
Ajay Gupte
 
ch19.ppt
Kalangivasavi
 
ch19.ppt
KARTHICKT41
 
Olap, expert system, data visualisation
Talent Corner HR Services Pvt Ltd.
 
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
 
Exploring Advanced SQL Techniques Using Analytic Functions
Zohar Elkayam
 
KScope19 - SQL Features
Connor McDonald
 
Business analysis
Dhilsath Fathima
 
Data Analysis – Technical learnings
InvenkLearn
 
Olap Functions Suport in Informix
Bingjie Miao
 
1. Introduction to the Course "Designing Data Bases with Advanced Data Models...
Fabio Fumarola
 
SQL Windowing
Sandun Perera
 
Complete unit ii notes
Benazir Fathima
 
Data ware housing- Introduction to data ware housing
Vibrant Technologies & Computers
 
_Super_Study_Guide__Data_Science_Tools_1620233377.pdf
nielitjanarthanam
 
Ad

Recently uploaded (20)

PPTX
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
PPTX
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
PPTX
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
PDF
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
PPTX
BinarySearchTree in datastructures in detail
kichokuttu
 
PPTX
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
PPTX
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
PPTX
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
PDF
JavaScript - Good or Bad? Tips for Google Tag Manager
📊 Markus Baersch
 
PDF
apidays Singapore 2025 - Streaming Lakehouse with Kafka, Flink and Iceberg by...
apidays
 
PPTX
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
PPTX
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
PPTX
04_Tamás Marton_Intuitech .pptx_AI_Barometer_2025
FinTech Belgium
 
PPTX
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
PDF
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
PDF
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
PPTX
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
PDF
Research Methodology Overview Introduction
ayeshagul29594
 
PPTX
Feb 2021 Ransomware Recovery presentation.pptx
enginsayin1
 
PDF
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
BinarySearchTree in datastructures in detail
kichokuttu
 
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
JavaScript - Good or Bad? Tips for Google Tag Manager
📊 Markus Baersch
 
apidays Singapore 2025 - Streaming Lakehouse with Kafka, Flink and Iceberg by...
apidays
 
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
04_Tamás Marton_Intuitech .pptx_AI_Barometer_2025
FinTech Belgium
 
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
Development and validation of the Japanese version of the Organizational Matt...
Yoga Tokuyoshi
 
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
Research Methodology Overview Introduction
ayeshagul29594
 
Feb 2021 Ransomware Recovery presentation.pptx
enginsayin1
 
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
Ad

Database Analysis, OLAP, Aggregate Functions

  • 1. Data Analysis, OLAP and Extended Aggregate Functions
  • 2. Data Analysis Data analysis is a process of inspecting, cleansing, transforming, and modeling data with the goal of discovering useful information, suggesting conclusions, and supporting decision-making.
  • 3. The Process Of Data Analysis 1. Data requirements 2. Data collection 3. Data processing 4. Data cleaning 5. Data analysis 6. Communication CONT.
  • 4. The Process Of Data Analysis
  • 5. Online Analytical Process OLAP (online analytical processing) is computer processing that enables a user to easily and selectively extract and view data from different points of view.
  • 6. Online Analytical Process ● OLAP allows users to analyze database information from multiple database systems at one time. ● OLAP data is multidimensional, meaning the information can be compared in many different ways.
  • 7. Types of Online Analytical Process 1. Relational OLAP(ROALP): Stored data in a relation data-base. 2. Multidimensional OLAP(MOLAP): Implemented operation in multidimensional data. 3. Hybrid Online Analytical processing(HOLAP): HOLAP store some summaries in memory and store the base data and other summaries in a relational database.
  • 9. Applications of OLAP ● Some popular OLAP server software programs include Oracle Express Server and Hyperion Solutions Essbase . Because of its powerful data analysis capabilities , OLAP processing is often used for data mining, which aims to discover new relationships between different sets of data.
  • 10. Decision Support System Decision support system (DSS) is a information system that analyzes business data or organizational data and presents it so that users can make business decisions more easily. CONT.
  • 11. Decision Support System ● DSSs serve the management, operations and planning levels of an organization and help organization to make decisions about problems that may be rapidly changing and not easily specified in advance. ● Decision support systems can be either fully computerized or human-powered, or a combination of both.
  • 12. Property of a Decision Support System ● DSS tends to be aimed at the less well structured, underspecified problem that upper level managers typically face. ● DSS attempts to combine the use of models or analytic techniques with traditional data access and retrieval functions. CONT.
  • 13. Property of a Decision Support System ● DSS specifically focuses on features which make them easy to use by non-computer-proficient people in an interactive mode. ● DSS emphasizes flexibility and adaptability to accommodate changes in the environment and the decision making approach of the user.
  • 14. The users themselves are also important components of the architecture Component of a Decision Support System Three fundamental components of a DSS architecture are 1. Database . 2. Model. 3. User Interface.
  • 15. Extended Aggregation The SQL-92 aggregation functionality is limited. But, The SQL-1999 Standard has a rich set of aggregation functionality. Such as the generalization of group by construct using cube and rollup construct. CONT.
  • 16. Extended Aggregation(Cube construct) A representative use cube construct is : select item_name,color from sales group by cube(item_name, color) This query computes the union of 4 different groupings in sales relation: {(item_name,color), (item_name), (color), {}} CONT.
  • 17. Extended Aggregation(Rollup construct) A representative use rollup construct is : select item_name,color from sales group by cube(item_name, color) This query computes the union of 3 different groupings in sales relation: {(item_name,color), (item_name), {}}
  • 18. Ranking Ranking is done in conjunction with an order by specification. From a relation students_mark(id, marks) to store the students by their obtained marks: select id, rank() over(order by (marks) desc) as s.rank from students_mark order by s.rank
  • 19. Windowing Windowing functions, which support summarization on moving windows. A window function defines a frame or window of rows with a given length around the current row, and performs a calculation across the set of data in the window. 1. Defines window partitions to from groups of rows.(PARTITIONS BY CLAUSE) 2. Orders rows within a partition.(ORDER BY CLAUSE) CONT.
  • 20. Windowing ● SYNTAX window_function(expression)over( [PARTITION BY expr_list] [ORDER BY order_list] [frame_clause]) ● 1. OVER () is a mandatory clause that defines a window within a query result set.OVER() is a subset of select and part of the aggregate function. CONT.
  • 21. Windowing ● 2. PARTITION BY clause subdivides the window into partitions. Including the partition clause divides the query result set into partition and window function is applied to each partition separately. ● 3.ORDER BY clause defines the logical order of the rows within each partition of the result set, if no PARTITION BY is specified, ORDER BY uses the entire table. ● Windows functions are applied to the rows within each partition and stored according to the order specification.