Data Cube and OLAP Server

Slides:



Advertisements
Similar presentations
1 CUBE: A Relational Aggregate Operator Generalizing Group By Jim Gray Adam Bosworth Andrew Layman Microsoft Microsoft.com Hamid Pirahesh IBM.
Advertisements

C6 Databases.
Chapter 18: Data Analysis and Mining Kat Powell. Chapter 18: Data Analysis and Mining ➔ Decision Support Systems ➔ Data Analysis and OLAP ➔ Data Warehousing.
5.1Database System Concepts - 6 th Edition Chapter 5: Advanced SQL Advanced Aggregation Features OLAP.
Data Warehousing CPS216 Notes 13 Shivnath Babu. 2 Warehousing l Growing industry: $8 billion way back in 1998 l Range from desktop to huge: u Walmart:
Set operators (UNION, UNION ALL, MINUS, INTERSECT) [SQL]
Chapter 11 Group Functions
OLAP Services Business Intelligence Solutions. Agenda Definition of OLAP Types of OLAP Definition of Cube Definition of DMR Differences between Cube and.
Jennifer Widom On-Line Analytical Processing (OLAP) Introduction.
Chapter 13 Business Intelligence and Data Warehouses
Decision Support and Data Warehouse. Decision supports Systems Components Data management function –Data warehouse Model management function –Analytical.
OLAP. Overview Traditional database systems are tuned to many, small, simple queries. Some new applications use fewer, more time-consuming, analytic queries.
Using Measures. Types of Measures Additive – A Measure Where the Value of a Member Is the Sum of Its Children At Any Level of Any Dimension Amount Units.
Online Analytical Processing. On-Line Analytical Processing (OLAP) Tools The use of a set of graphical tools that provides users with multidimensional.
Data Sources Data Warehouse Analysis Results Data visualisation Analytical tools OLAP Data Mining Overview of Business Intelligence Data visualisation.
©Silberschatz, Korth and Sudarshan22.1Database System Concepts 4 th Edition 1 SQL:1999 Advanced Querying Decision-Support Systems Data Warehousing Data.
Chap8: Trends in DBMS 8.1 Database support for Field Entities 8.2 Content-based retrieval 8.3 Introduction to spatial data warehouses 8.4 Summary.
COMP 578 Data Warehousing And OLAP Technology Keith C.C. Chan Department of Computing The Hong Kong Polytechnic University.
Data Warehousing. On-Line Analytical Processing (OLAP) Tools The use of a set of graphical tools that provides users with multidimensional views of their.
CSE6011 Warehouse Models & Operators  Data Models  relations  stars & snowflakes  cubes  Operators  slice & dice  roll-up, drill down  pivoting.
Ch3 Data Warehouse part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009.
Online Analytical Processing (OLAP) Hweichao Lu CS157B-02 Spring 2007.
OLAP OPERATIONS. OLAP ONLINE ANALYTICAL PROCESSING OLAP provides a user-friendly environment for Interactive data analysis. In the multidimensional model,
Chetan Bhirud Raza Mohammad Abinash Sahoo Online Marketing Giant.
Advanced Databases 5841 DATA CUBE. Index of Content 1. The “ALL” value and ALL() function 2. The New Features added in CUBE 3. Computing the CUBE and.
Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals Presenter : Parminder Jeet Kaur Discussion Lead : Kailang.
Enhancements to the GROUP BY Clause Fresher Learning Program January, 2012.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Decision Support Chapter 23.
Week 6 Lecture The Data Warehouse Samuel Conn, Asst. Professor
DATA WAREHOUSING IN SQL SERVER 2005/2008 BUSINESS INTELLIGENCE.
IST722 Data Warehousing Business Intelligence Development with SQL Server Analysis Services and Excel 2013 Michael A. Fudge, Jr.
1 CUBE: A Relational Aggregate Operator Generalizing Group By By Ata İsmet Özçelik.
OLAP Theory-English version On-Line Analytical processing (Buisness Intzlligence) [Ing.Skorkovský,CSc] KPH_ESF_MU.
OnLine Analytical Processing (OLAP)
Cube Intro. Decision Making Effective decision making Goal: Choice that moves an organization closer to an agreed-on set of goals in a timely manner Goal:
Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross- Tab and Sub-Totals Gray et Al. Presented By: Priya Rajan.
Business Intelligence Zamaneh Jahed. What is Business Intelligence? Business Intelligence (BI) is a broad category of applications and technologies for.
Presented By: Muhammad Rizvi Raghuram Vempali Surekha Vemuri.
Data Warehousing.
BUSINESS ANALYTICS AND DATA VISUALIZATION
By N.Gopinath AP/CSE. There are 5 categories of Decision support tools, They are; 1. Reporting 2. Managed Query 3. Executive Information Systems 4. OLAP.
Computing & Information Sciences Kansas State University Wednesday, 29 Nov 2006CIS 560: Database System Concepts Lecture 39 of 42 Wednesday, 29 November.
Lexmark By Rosanna Nadal & Irina Yermolovich. Lexmark International Global manufacturer of printing products and solutions for customers in more then.
1 On-Line Analytic Processing Warehousing Data Cubes.
Data Warehousing.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support Chapter 25.
1 Database Systems, 8 th Edition Star Schema Data modeling technique –Maps multidimensional decision support data into relational database Creates.
Introduction to OLAP and Data Warehouse Assoc. Professor Bela Stantic September 2014 Database Systems.
Data Warehouses and OLAP 1.  Review Questions ◦ Question 1: OLAP ◦ Question 2: Data Warehouses ◦ Question 3: Various Terms and Definitions ◦ Question.
Pindaro Demertzoglou Data Resource Management – MGMT 4170 Lally School of Management Rensselaer Polytechnic Institute.
Or How I Learned to Love the Cube…. Alexander P. Nykolaiszyn BLOG:
Data Warehousing and OLAP Outline u Models & operations u Implementing a warehouse u Future directions.
Data Analysis Decision Support Systems Data Analysis and OLAP Data Warehousing.
Data Analysis and OLAP Dr. Ms. Pratibha S. Yalagi Topic Title
More SQL: Complex Queries,
Data Warehousing CIS 4301 Lecture Notes 4/20/2006.
Chapter 13 Business Intelligence and Data Warehouses
On-Line Analytic Processing
Chapter 5: Advanced SQL Database System concepts,6th Ed.
SQL/OLAP Sang-Won Lee Let’s e-Wha! URL: Jul. 12th, 2001 SQL/OLAP
Based on notes by Jim Gray
DATA CUBE Advanced Databases 584.
On-Line Analytical Processing (OLAP)
Data warehouse Design Using Oracle
SQL – Entire Select.
Chapter 4 Summary Query.
More SQL: Complex Queries, Triggers, Views, and Schema Modification
Slides based on those originally by : Parminder Jeet Kaur
Presentation transcript:

Data Cube and OLAP Server Madhavi Gundavarapu

Data Cube and OLAP Server Outline What is Data Analysis? Steps in Data Analysis SQL-92 Aggregate Functions Limitations of GROUP BY OLAP Server CUBE Operator ROLLUP Operator Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server What is Data Analysis? DATA ANALYSIS query exact response User issues a query, receives a response and formulates the next query based on the response This process repeats until the user gets the required result Fundamentally an iterative process Hello mahesh Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Why Data Analysis? Search for unusual patterns of data Summarize data values Extract statistical information Contrast one category with another Provide a consolidated view of enterprise data buried in OLTP databases Help Decision makers understand business trends Derive intelligible results from ad hoc, voluminous and scattered data Hello mahesh Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Steps in Data Analysis Formulate query Extract aggregated data Visualize results Analyze Analyze & Formulate Extract Visualize Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Overview of SQL-92 SQL has several aggregate operators: sum(), count(), avg(), min(), max() The basic idea is: Combine all values in a column into a single scalar value Syntax SELECT sum(units) FROM inventory; Madhavi Gundavarapu Data Cube and OLAP Server

Overview of SQL-92 (contd.): Distinct Clause Allows aggregation over distinct values Example SELCT COUNT(DISTINCT locations) FROM inventory; Madhavi Gundavarapu Data Cube and OLAP Server

Overview of SQL-92 (contd.): GROUP BY Clause Group By allows aggregates over table sub-groups Result is a new table Syntax: SELCT location, sum(units) FROM inventory GROUP BY location HAVING nation = “USA”; Madhavi Gundavarapu Data Cube and OLAP Server

Limitations of GROUP BY Users want CrossTabs GROUP BY is limited to 0-D and 1-D aggregates Users want sub-totals and totals drill-down & roll-up reports M T W T F S S  AIR HOTEL FOOD MISC sum Madhavi Gundavarapu Data Cube and OLAP Server

Multidimensional Data Measure Attributes Dimension Attributes Example Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server OLAP System On-Line Analytical Processing System Interactive system Permits analysts to view summaries of multidimensional data On-Line indicates No long waits to see result of a query response times within a few seconds for new summaries View data at different levels of granularity Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server SQL:1999 OLAP Extensions SQL-92 functionality was limited SQL:1999 standard defines CUBE ROLLUP as generalizations of GROUP BY clause Madhavi Gundavarapu Data Cube and OLAP Server

CUBE : Relational Aggregate Operator N-dimensional generalization of simple aggregate functions CHEVY FORD 1990 1991 1992 1993 RED WHITE BLUE By Color By Make & Color By Make & Year By Color & Year By Make By Year Sum The Data Cube and The Sub-Space Aggregates Chevy Ford Cross Tab Group By (with total) Aggregate The CUBE operator is the N-dimensional generalization of simple aggregate functions. The 0D data cube is a point. The 1D data cube is a line with a point. The 2D data cube is a cross tabulation, a plane, two lines, and a point. The 3D data cube is a cube with three intersecting 2D cross tabs. Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server CUBE : The Idea 0-dimensional Aggregate (sum(), max(),...) a1, a2, ...., aN, f() Super-aggregate over 1-Dimensional sub-cubes ALL, a2, ...., aN , f() a1, ALL, a3, ...., aN , f() ... a1, a2, ...., ALL, f() Super-aggregate over 2-Dimensional sub-cubes ALL, ALL, a3, ...., aN , f() a1, a2 ,...., ALL, ALL, f() Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server An Example SELECT model, year, color, sum(sales) as sales FROM sales WHERE model in (‘Chevy’) AND year BETWEEN 1990 AND 1992 GROUP BY CUBE (model, year, color); Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server CUBE Contd. SELECT model, year, color, sum(sales) as sales FROM sales WHERE model in (‘Chevy’) AND year BETWEEN 1990 AND 1992 GROUP BY CUBE (model, year, color); Computes union of 8 different groupings: {(model, year, color), (model, year), (model, color), (year, color), (model), (year), (color), ()} Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Example Contd. CUBE Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server GROUPING Function SQL:1999 uses NULL to represent both ALL and regular null values GROUPING function Can be applied to an attribute Returns 1 if NULL value represents ALL Returns 0 in all other cases Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server GROUPING Example SELECT model, year, color, sum(sales) as sales, GROUPING(model) as model_flag, GROUPING(year) as year_flag, GROUPING(color) as color_flag FROM sales WHERE model in (‘Chevy’) AND year BETWEEN 1990 AND 1992 GROUP BY CUBE (model, year, color); Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Rollup and Drill down Allow analysts to view data at any desired level of granularity Rollup Operation of moving from finer-granularity of data to a coarser granularity Drill Down Operation of moving from coarser-granularity of data to a finer granularity Cannot be generated from coarse-granularity data Has to be computed from original data Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server ROLLUP Operator Rollup example SELECT model, year, color, sum(sales) as sales FROM sales WHERE model in (‘Chevy’) AND year BETWEEN 1990 AND 1992 GROUP BY ROLLUP (model, year, color); Only 4 groupings are generated {(model, year, color), (model, year), (model), ()} Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Summary SQL-92 has limited functionality to support OLAP operations SQL:1999 has introduced extensions to address these limitations provides operators such as CUBE, GROUPING and ROLLUP Madhavi Gundavarapu Data Cube and OLAP Server

Data Cube and OLAP Server Questions Madhavi Gundavarapu Data Cube and OLAP Server