SlideShare a Scribd company logo
1 of 22
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

78307635 geometric-modeling-concepts
78307635 geometric-modeling-concepts78307635 geometric-modeling-concepts
78307635 geometric-modeling-concepts
manojg1990
 
Stata claass lecture
Stata claass lectureStata claass lecture
Stata claass lecture
Akram Ali
 

What's hot (18)

Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Data structures and algorithm
Data structures and algorithmData structures and algorithm
Data structures and algorithm
 
Normalization
NormalizationNormalization
Normalization
 
Adbms 6 three schema database architecture
Adbms 6 three schema database architectureAdbms 6 three schema database architecture
Adbms 6 three schema database architecture
 
Iteman. madiha
Iteman. madihaIteman. madiha
Iteman. madiha
 
Adbms 23 distributed database design
Adbms 23 distributed database designAdbms 23 distributed database design
Adbms 23 distributed database design
 
Distributed database Project ppt
Distributed database Project pptDistributed database Project ppt
Distributed database Project ppt
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Designing PrinciplesOf Software
Designing PrinciplesOf Software Designing PrinciplesOf Software
Designing PrinciplesOf Software
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Research Methodology
Research MethodologyResearch Methodology
Research Methodology
 
Basics of dml queries
Basics of dml queriesBasics of dml queries
Basics of dml queries
 
78307635 geometric-modeling-concepts
78307635 geometric-modeling-concepts78307635 geometric-modeling-concepts
78307635 geometric-modeling-concepts
 
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
E-R DIAGRAMS, DFD'S AND STATE TRANSITION DIAGRAMS !!
 
Data Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence DiagramData Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence Diagram
 
Rts methodologies(ward mellor methodology essential model)
Rts methodologies(ward mellor methodology  essential model)Rts methodologies(ward mellor methodology  essential model)
Rts methodologies(ward mellor methodology essential model)
 
Stata claass lecture
Stata claass lectureStata claass lecture
Stata claass lecture
 
Dfd mechanics
Dfd mechanicsDfd mechanics
Dfd mechanics
 

Similar to Database Analysis, OLAP, Aggregate Functions

System design and Implementation NOTES.pptx
System design and Implementation NOTES.pptxSystem design and Implementation NOTES.pptx
System design and Implementation NOTES.pptx
gauravgoswami78
 
Ch. 3.pdf
Ch. 3.pdfCh. 3.pdf
Ch. 3.pdf
RajniSavaliya
 
Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
FLYMAN TECHNOLOGY LIMITED
 

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

Data warehouse physical design
Data warehouse physical designData warehouse physical design
Data warehouse physical design
 
Process management seminar
Process management seminarProcess management seminar
Process management seminar
 
System design and Implementation NOTES.pptx
System design and Implementation NOTES.pptxSystem design and Implementation NOTES.pptx
System design and Implementation NOTES.pptx
 
BCA V Sem System design and Implementation
BCA V Sem System design and ImplementationBCA V Sem System design and Implementation
BCA V Sem System design and Implementation
 
E05312426
E05312426E05312426
E05312426
 
Introduction
IntroductionIntroduction
Introduction
 
Systems analysis and design
Systems analysis and designSystems analysis and design
Systems analysis and design
 
Systems Analysis and Design
Systems Analysis and DesignSystems Analysis and Design
Systems Analysis and Design
 
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
K Means Clustering Algorithm for Partitioning Data Sets Evaluated From Horizo...
 
Advanced Database System
Advanced Database SystemAdvanced Database System
Advanced Database System
 
Nose Dive into Apache Spark ML
Nose Dive into Apache Spark MLNose Dive into Apache Spark ML
Nose Dive into Apache Spark ML
 
Management Information system
Management Information systemManagement Information system
Management Information system
 
Software_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptxSoftware_Engineering_Presentation (1).pptx
Software_Engineering_Presentation (1).pptx
 
Object oriented analysis and design unit- i
Object oriented analysis and design unit- iObject oriented analysis and design unit- i
Object oriented analysis and design unit- i
 
Ch. 3.pdf
Ch. 3.pdfCh. 3.pdf
Ch. 3.pdf
 
Data mining query language
Data mining query languageData mining query language
Data mining query language
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
OLAP in Data Warehouse
OLAP in Data WarehouseOLAP in Data Warehouse
OLAP in Data Warehouse
 
Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
 
Online eaxmination
Online eaxminationOnline eaxmination
Online eaxmination
 

Recently uploaded

Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
ju0dztxtn
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
jk0tkvfv
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
dq9vz1isj
 

Recently uploaded (20)

Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor NetworksSensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
 
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
What is Insertion Sort. Its basic information
What is Insertion Sort. Its basic informationWhat is Insertion Sort. Its basic information
What is Insertion Sort. Its basic information
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
Formulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdfFormulas dax para power bI de microsoft.pdf
Formulas dax para power bI de microsoft.pdf
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 

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.