0% found this document useful (0 votes)
28 views

Assignments - 3 FALL 2022 11122022 084214pm

The document discusses constructing OLAP cubes to analyze cricket player performance and dengue case data. For cricket, the OLAP would show the number of times players scored under 20, 20s, 30s, 50s and 100s. This could help select the best players for an upcoming tournament. For dengue, the OLAP would calculate total cases, average, standard deviation, minimum, maximum and correlation between types for each city and year to identify high risk areas and the most common strain. Various queries are then answered based on analyzing the OLAP cubes.

Uploaded by

Raja Fawad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Assignments - 3 FALL 2022 11122022 084214pm

The document discusses constructing OLAP cubes to analyze cricket player performance and dengue case data. For cricket, the OLAP would show the number of times players scored under 20, 20s, 30s, 50s and 100s. This could help select the best players for an upcoming tournament. For dengue, the OLAP would calculate total cases, average, standard deviation, minimum, maximum and correlation between types for each city and year to identify high risk areas and the most common strain. Various queries are then answered based on analyzing the OLAP cubes.

Uploaded by

Raja Fawad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Bahria University, Islamabad Campus

Department of Computer Sciences


Class/Section: BSCS

Subject: Data Warehousing

(FALL 2022 Semester)

Assignment # 3
Name: Muhammad Fawad Ul Islam Enroll No: 01-235182-107

Note: In Case of Copy/Paste Zero Marks will be awarded

Question#1:

By keeping in mind the bad performance of pakistan cricket, management decide


to replace at two batsman in the national team. Based on domestic performance
two batsman are selected. Suppose you want to analyze the performance of 5
players attending a train ing camp to be selected for the coming internatinal tour
of newzeland in start of 2020. suppose all 5 -players were part of various
tournments like PSL (T20), National Cup(OneDay), Quaid E Azam Trophy(Test)
of matches s of last five seasons ( Such as season -1, Season -II, Season-III,
Season-IV, Season-V). You are required to construct OLAP showing number of
time the player scored less than 20, 20's, 30's, 50's, 100's in these matches and
answer the following queries and perform the desired calculations

OLAP cube:
a) Which of these five players is recently considered to be an in-form
player?
Babar Azam is considered to be an in form player because he can score
more fifties and centuries.

b) Which player has consistent performance in domestic matches?


Babar Azam has consistent performance in domestic matches.

c) Which player should not be considered for selection because of his poor
performance in the T -20 matches?
Asif Ali should not be considered for selection because it can score no
century or score more less than 20s.

d) Which player can be considered for test matches?


M Rizwan can be considered for t est matches.
e) Write at least 5 more similar queries and answer it from the designed
OLAP cube
Query 1:
Which player has scored more centuries?
Babar Azam score 13 centuries.
Query 2:
Which player has sc ored no century?
Asif Ali has scored no century.
Query 3:
Which player can be con sidered as T20 player?
Fakhar Zaman can be consi dered as T20 player because it has consistent
in T20 and has scored more 30s.
Query 4:
Which player has more less than 20s?
Asif Ali has more le ss than 20s.
Query 5:
Which player has more 50s?
Babar Azam has more 50s .

Question#2:

Suppose a team of doctors wants to carry out a study to devise a proper vaccine
for dengue to increase number of blood cells in the blood. The data will also be
helpful to take some precautionary measures such as a spray or reducing the
grossy areas etc. in/from the affected area. The data of number of white blood
cells for the patients of virus type -1(NC-001477), virus type -2(NC-001474) and
virus type-3(NC-001475) is collected from Islamabad, Rawalpindi, Lahore,
Karachi, Quetta and Peshawar is collected for last five years. Consider sample
data in the OLAP cube and then

OLAP cube:
Create an OLAP that showing the

a) Total
b) Average
c) Standard Deviation

d) Minimum
e) Maximum

f) Calculate Correlation for two sample types of disease

i) Answer the following queries ( using above calculation )


a) Which city have highest number of dengue cases?
Karachi has highest number of dengue cases .

b) Which type of dengue is most common in all cities?


Type-I is most common in all cities .

c) Which year is supposed to be a most dangerous year for this


dangue disease?
2017 is the most dangerous year .
d) Which year is supposed to have fewest number of dangue
cases?
2021 have fewer number of dengue cases.
ii) Write at least 5 more similar queries and answer it from the
designed OLAP cube
Query 1:
How many dengue cases in 2 018?
4300 dengue cases in 2018

Query 2:
Which type of dengue has fewer cases?
Type-III has fewer cases .

Query 3:
How many dengue cases are in Islamabad?
2900 cases are in Islamabad in last five years .

Query 4:
Which city has fewer dengue cases?
Islamabad has fewer den gue cases.

Query 5:
How many dengue cases of Type-II?
There are 6400 dengue cases of Type-II

You might also like