case study cube to stars chem a
TRANSCRIPT
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 1/16
Distributed DBMS:
Case Study on Data Model
Representation for OLAP Operations
Universityof Calcutta
1
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 2/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Medical Clinic Data Analysis 1/2
A data warehouse consists of the threedimensions time, doctor , and patient , and thetwo measures count and charge, where charge
is the fee that a doctor charges a patient for avisit.
Draw and enumerate a cube data model for month-wise data on 4 doctors, 6 patients for a
total period of 1 year Propose the Star/Snowflake Schema for the
above warehouse
1
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 3/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Medical Clinic Data Analysis 2/2
Starting with the base cuboid [month, doctor ,
patient ], what specific OLAP operations should
be performed in order to list the total fee
collected by each doctor in 2008?
To obtain the same list, write an SQL query
assuming the data are stored in a relational
database with the schema f ee (day, month,
year, doctor, hospital, patient, count, charge).
1
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 4/16
Distributed DBMS:
Case Study on Data Model
Representation for OLAP Operations
Universityof Calcutta
2
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 5/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
University Data Analysis 1/2
Suppose that a data warehouse for a U niversity consists of the following four dimensions:student, course, semester , and teacher , and two
measures count and average marks. At the lowest conceptual level (e.g., for a given
student, course, semester, and teacher combination), the average marks measurestores the actual marks obtained out of 100 by
the student. At higher conceptual levels, average marks
stores the average mark for a given combination
2
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 6/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
University Data Analysis 2/2
Draw and enumerate a cube data model for 6-month long semester-wise data on 3 courses, 5teachers for a total period of 2 years
Propose the Star/Snowflake Schema for theabove warehouse
Starting with the base cuboid [student , course,semester , instructor ], what specific OLAP operations (e.g., roll-up from semester to year )should one perform in order to list the averagegrade of CS courses for each Big U niversity student.
2
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 7/16
Distributed DBMS:
Case Study on Data Model
Representation for OLAP Operations
Universityof Calcutta
3
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 8/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Sports Data Analysis 1/2
A data warehouse consists of the four dimensions, spectator, date, location andgame, and the two measures, count and
charge, where charge is the fare that aspectator pays when watching a game on agiven date. Spectators may be students,adults, or seniors, with each category havingits own charge rate.
Draw and enumerate a cube data model for month-wise data on 4 locations, 4 types of games for a total period of 1 year
3
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 9/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Sports Data Analysis 2/2
Propose the Star/Snowflake Schema for the
above warehouse
Starting with the base cuboid [date, spectator ,
location, game], what specific OLAP operationsshould one perform in order to list the total
charge paid by student spectators at GM Place
in 2004?
3
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 10/16
Distributed DBMS:
Case Study on Data Model
Representation for OLAP Operations
Universityof Calcutta
4
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 11/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Election Data Analysis 1/2
A data warehouse consists of the three
dimensions, political party , date and location,
and the two measures, count and charge,
where charge is the money that a party spendsto organize a election meeting on a location on
a given date.
Draw and enumerate a cube data model for
fortnightly data on 4 locations, and 6 politicalparties for a total period of 3 months during
election
4
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 12/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Election Data Analysis 2/2
Propose the Star/Snowflake Schema for the
above warehouse
Starting with the base cuboid [date, party,
location], what specific OLAP operationsshould one perform in order to list the total
money spent by TMC during the first month of
election?
4
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 13/16
Distributed DBMS:
Case Study on Data Model
Representation for OLAP Operations
Universityof Calcutta
5
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 14/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Election Data Analysis 1/2
A data warehouse consists of the four
dimensions, drug shop chain, sales type, date
and location, and the one measure, prof it. The
sales may be retail, hospital or company. Draw and enumerate a cube data model for
weekly data on 3 drug shop chains, and 4
locations for a total period of 2 months
5
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 15/16
December 17, 2010 Dr. Nabendu Chaki; [email protected]
Election Data Analysis 2/2
Propose the Star/Snowflake Schema for the
above warehouse
Starting with the base cuboid [drug shop chain,
date, type, location], what specific OLAP operations should one perform in order to list
the total profit by Apollo in location Chennai
and Thirunelveli during the last 4 weeks?
5
8/8/2019 Case Study Cube to Stars Chem A
http://slidepdf.com/reader/full/case-study-cube-to-stars-chem-a 16/16
Thank You