• No results found

CS Programming OLAP

N/A
N/A
Protected

Academic year: 2021

Share "CS Programming OLAP"

Copied!
64
0
0

Loading.... (view fulltext now)

Full text

(1)

CS6905 - Programming OLAP

DANIEL LEMIRE

Research Officer, NRC Adjunct Professor, UNB

(2)

CS6905 - Programming OLAP

DANIEL LEMIRE

Research Officer, NRC Adjunct Professor, UNB

These slides will be made available on the web.

(3)

Overview

Review of the industry

(4)

Overview

Review of the industry

Course presentation

(5)

Overview

Review of the industry

Course presentation

Homework Assignment

(6)

Overview

Review of the industry

Course presentation

Homework Assignment

Motivation through example

(7)

Overview

Review of the industry

Course presentation

Homework Assignment

Motivation through example

(8)

OLAP is important?

(9)

Historical Perspective

1970 Codd proposes relational model

&

1980 SQL becomes a commercial success (Oracle, IBM) 1993 Codd coined OLAP, Excel offers Pivot Tables

1997 MOLAP vs ROLAP debate

1999 SQL-99 offers some OLAP functionality

(10)

Industry standards

Name Status Platform Proponent

OLE DB In use Wintel Microsoft

XML Analysis Prototypical SOAP Microsoft, Hyperion

JOLAP Prototypical Java (J2EE) IBM, Oracle, Hyperion, Sun

(11)

Who sells OLAP

Microsoft 24%

Hyperion 23%

Cognos 13%

BO 7%

MicroStrategy 5%

SAP 5%

Oracle 5%

PwC 3%

Applix 3%

Comshare 2%

IBM 2%

(12)

Course Presentation

Look at print-out NOW!

(13)

Course Presentation

Look at print-out NOW!

On-line Analytical Processing

(14)

Course Presentation

Look at print-out NOW!

On-line Analytical Processing or OLAP

(15)

Course Presentation

Look at print-out NOW!

On-line Analytical Processing or OLAP

Programming OLAP:

(16)

Course Presentation

Look at print-out NOW!

On-line Analytical Processing or OLAP

Programming OLAP: under the hood

(17)

Course Presentation

Look at print-out NOW!

On-line Analytical Processing or OLAP

Programming OLAP: under the hood

Dark art of designing multidimensional database!

(18)

This lecture?

What kinds of problems can OLAP help me solve?

(19)

This lecture?

What kinds of problems can OLAP help me solve?

Can it help me figure out which products or cus- tomers are profitable?

(20)

This lecture?

What kinds of problems can OLAP help me solve?

Can it help me figure out which products or cus- tomers are profitable?

Can it help me pick better stocks?

(21)

Amazon CEO



You are Amazon’s CEO. You’ve been told that cheaper items sell more. Is it true?

(22)

Amazon CEO



You are Amazon’s CEO. You’ve been told that cheaper items sell more. Is it true?



Used Amazon’s SOAP API

7−→

data cube

7−→

on- line answer!

(23)

Amazon OLAP Results

(24)

Amazon CEO (part 2)



Ah. Yes. Well, this is nice. says the CEO

(25)

Amazon CEO (part 2)



Ah. Yes. Well, this is nice. says the CEO



Maybe price doesn’t impact sales for items that are highly rated?

(26)

Amazon OLAP Results (part 2)

(27)

Amazon CEO (part 3)



Ok. I was wrong. Very nice. says the CEO

(28)

Amazon CEO (part 3)



Ok. I was wrong. Very nice. says the CEO



(CEO is now buying into the OLAP frame of mind.)

(29)

Amazon CEO (part 3)



Ok. I was wrong. Very nice. says the CEO



(CEO is now buying into the OLAP frame of mind.)



Maybe price doesn’t impact sales for items that are poorly rated?

(30)

Amazon OLAP Results (part 3)

(31)

Amazon CEO (part 4)



Ok. Something different is happening with poorly rated items. says the CEO

(32)

Amazon CEO (part 4)



Ok. Something different is happening with poorly rated items. says the CEO



(CEO thinks for a second or two.)

(33)

Amazon CEO (part 4)



Ok. Something different is happening with poorly rated items. says the CEO



(CEO thinks for a second or two.)



How many poorly rated items are there compared to highly rated?

(34)

Amazon OLAP Results (part 4)

(35)

Convenience?



This was all computed in a few seconds using our very own web interface (HOWLER).



OLAP should be sexy, responsive, and convenient.

(36)

Convenience?



This was all computed in a few seconds using our very own web interface (HOWLER).



OLAP should be sexy, responsive, and convenient.



Meant for business people.

(37)

Howler

(38)

But what is OLAP exactly?

Short answer: a marketing term more catchy than multidimensional database.

(39)

But what is OLAP exactly?

Short answer: a marketing term more catchy than multidimensional database.

Providing OLAP (On-Line Analytical Pro- cessing) to User-Analysts: An IT Mandate.

1993

(40)

But what is OLAP exactly?

Short answer: a marketing term more catchy than multidimensional database.

Providing OLAP (On-Line Analytical Pro- cessing) to User-Analysts: An IT Mandate.

1993

(41)

Some of Codd’s definining conditions

Multidimensional Conceptual View

(42)

Some of Codd’s definining conditions

Multidimensional Conceptual View

Generic Dimensionality

(43)

Some of Codd’s definining conditions

Multidimensional Conceptual View

Generic Dimensionality

Unlimited Dimensions and Aggregation Levels

(44)

Some of Codd’s definining conditions

Multidimensional Conceptual View

Generic Dimensionality

Unlimited Dimensions and Aggregation Levels

(45)

Some of Codd’s definining conditions

Unrestricted Cross-Dimensional Operations

(46)

Some of Codd’s definining conditions

Unrestricted Cross-Dimensional Operations

Consistent Reporting Performance

(47)

Some of Codd’s definining conditions

Unrestricted Cross-Dimensional Operations

Consistent Reporting Performance

Dynamic Sparse Matrix Hadling

(48)

Some of Codd’s definining conditions

Unrestricted Cross-Dimensional Operations

Consistent Reporting Performance

Dynamic Sparse Matrix Hadling

(49)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

(50)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

MOLAP: Multidimensional OLAP

(51)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

MOLAP: Multidimensional OLAP

ROLAP: Relational OLAP

(52)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

MOLAP: Multidimensional OLAP

ROLAP: Relational OLAP

HOLAP: Hybrid OLAP

(53)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

MOLAP: Multidimensional OLAP

ROLAP: Relational OLAP

HOLAP: Hybrid OLAP

(54)

Other catchy names

DOLAP: Database OLAP or Desktop OLAP

MOLAP: Multidimensional OLAP

ROLAP: Relational OLAP

HOLAP: Hybrid OLAP

(55)

Definitions

Array Storage method where the elements of the array are placed sequen- tially in a contiguous region of storage (disk or RAM)

(56)

Definitions

Array Storage method where the elements of the array are placed sequen- tially in a contiguous region of storage (disk or RAM)

Index A structure used to locate values.

(57)

Definitions

Variable A unit-bearing data type, either measured or derived.

(58)

Definitions

Variable A unit-bearing data type, either measured or derived.

Attribute Information associated with an object.

(59)

Definitions

Variable A unit-bearing data type, either measured or derived.

Attribute Information associated with an object.

Dimension Collection of objects of the same type.

For our purposes, Variable = Attribute.

(60)

Dimension versus Variable

weight height John 160lbs 1.8m Maggy 125lbs 1.4m

(61)

Definitions

To Aggregate The process of combining two or more data items into a single item.

(62)

Definitions

To Aggregate The process of combining two or more data items into a single item.

Measure A unit-bearing data type.

(63)

Definitions

To Aggregate The process of combining two or more data items into a single item.

Measure A unit-bearing data type.

Cell A measure associated with one and only one member from each of multiple dimensions.

(64)

Definitions

To Aggregate The process of combining two or more data items into a single item.

Measure A unit-bearing data type.

Cell A measure associated with one and only one member from each of multiple dimensions.

References

Related documents

given in [1] for multiple orthogonal polynomials associated with Nikishin systems defined by absolutely continuous measures in the Szeg˝o class..

Using Archaeological Fish Remains to Determine the Native Status of Anadromous Salmonids in the Upper Klamath Basin (Oregon, USA) Through mtDNA and..

Contributing to risk prevention and crisis management by boosting the Veterinary Services’ technical and human relations skills through public awareness raising services,

In this paper, a method for surface reconstruction by means of optimized NURBS (Non-Uniform Rational B-Splines) patches from complex quadrilateral bases on triangulated surfaces

The current paper critically reviews literature on backchannels, questioning the assumed definitions of backchannels that have been used in studies, and argues for the need of

However, to generate hatching over a surface of arbitrary topology, we construct for the given model a lapped texture parametrization [17], and render TAMs over the resulting set

Y = [INTRATE, LM1, CHANNEL, LCPI, LINDPROD] (4) where the variable CHANNEL denotes one of the monetary transmission channel variables (i.e. exchange rate, asset price, credit

FONTE: Anuário brasileiro de desastres naturais: 2012.. Climate projections based on the scientific results of global and regional climate modelling.. Earth System Science Center