We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Objective:

The assignment has been designed to develop your ability to calculate the Bitmap index. 

Instructions:

Please read the following instructions carefully before solving & submitting assignment:

 

  1. 1.      The assignment will not be accepted after due date in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.).
  2. 2.      Zero marks will be awarded to the assignment that does not open or the file is corrupt.
  3. 3.      The assignment file must be an MS Word (.doc) file format; Assignment will not be accepted in any other format.
  4. 4.      Zero marks will be awarded to the assignment if copied (from other student or copied from handouts or internet).
  5. 5.      Zero marks will be awarded to the assignment if the Student ID is not mentioned in the assignment file.

 

For any query about the assignment, contact only at CS614@vu.edu.pk

Do not post queries related to assignment on MDB.

 

GOOD LUCK

Question 1                                                                                                                                         [10 Marks]

 

Consider the following table:

 

Player_Team

Player_ID

Player_Name

Team_ID

Pool_ID

IND-06

Gangoli

IND

A

AFG-05

Najeeb

AFG

B

SA-07

AB Devillier

SA

A

AU-01

Steve Waugh

AU

B

IND-01

Tandulker

IND

A

AU-04

Maxwell

AU

B

AFG-01

Nawroze

AFG

B

SA-09

Dal Styn

SA

A

 

Consider the following query:

 

SELECT Count (Player_Team.Pool_ID) AS CountOfPool_ID

FROM Player_Team

GROUP BY Player_Team.Pool_ID;

 

Answer the following questions:

 

  1. You need to identify the number of clusters from this data.
  2. Secondly, you have to identify whether the given clustering is one way or two way clustering. Your answer should support by valid reasons.

 

Question 2                                                                                                                                         [10 Marks]

Consider the following tables:

 

Player

 

Player_ID

Player_Name

Team

PK-01

Wasim

Pakistan

PK-02

Misbah

Pakistan

SA-03

AB Devillier

South Africa

 

Award

 

Award_ID

Match_ID

Player_ID

01

01

PK-01

01

02

PK-01

02

03

PK-02

01

04

SA-03

 

Consider the following query:

 

Select * from Player P, Award A where P.Team= ‘Pakistan’ and A.Award_ID = ‘01’ and P.Player_ID = A.Player_ID

 

Suppose this query is executed using Naive Nested-Loop join and (i.e. there is no index created on both Player and Award tables). Mention that which table should be the Outer table to get minimum I/O by manually calculating the cost in both cases i.e. when “Player” is outer table and when “Award” is outer table.

 

 

Note: You need to mention the calculations in your solutions where required.

 

 

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 7174

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

koi 4 5 

koi 11 13

koi 45 48

2nd quiz ka corect answer kia hy ?

Calculate yourself and lets see................

RSS

Latest Activity

October posted a status
"ہم نے جونہی کر لیا محسوس منزل ہے قریب راستے کھونے لگے ہیں میں ، محبت اور تم"
50 seconds ago
ϲɾɑՀվ ҽíցհԵՏ liked ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
58 seconds ago
ϲɾɑՀվ ҽíցհԵՏ liked ϝ ι ყ α's discussion *خواتین.........XD XD *
1 minute ago
October posted a status
"آج یوں موسم نے دی جشن محبت کی خبر پھوٹ کر رونے لگے ہیں ، میں محبت اور تم"
1 minute ago
ϲɾɑՀվ ҽíցհԵՏ liked ϝ ι ყ α's discussion *1st $em VS Last Sem,................*
5 minutes ago
October posted a status
"Leye Jaey Jane Kahan Hamain Waqt Ka Darya Is Dil Pe Lage Zakhm Zara Aaj Dekhalon Rate"
5 minutes ago
ϲɾɑՀվ ҽíցհԵՏ liked ϝ ι ყ α's discussion *1st $em VS Last Sem,................*
5 minutes ago
October posted a status
"To Pass Na Aa, Haan Zara Daman To Barha De Ashkon Ko Kahan Tak Main In Aankhon Me Sambhalon"
7 minutes ago
October posted a status
"Bichri Hai Meri Neend Bichri Ho Tum Jab Se Ji Chahey Tujhey Roze Hi Khawbon Main Bolalon"
7 minutes ago
+ ! ! ! ! !Cato liked + ! ! ! ! !Cato's blog post Lets Make .....................Tasbeeh
12 minutes ago
+++STUDENT+++ commented on + ! ! ! ! !Cato's blog post Lets Make .....................Tasbeeh
23 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *1st $em VS Last Sem,................*
41 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *1st $em VS Last Sem,................*
46 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion What is Microsoft Excel..............???
47 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion What is Microsoft Excel..............???
48 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion What is Microsoft Excel..............???
49 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion What is Microsoft Excel..............???
49 minutes ago
October posted a status
"Hans Ke Ham Baat Jo Kar Lete Hai Un Se Khursheed Haal Apna Wo Samajh Lete Hai Acha Hoga"
50 minutes ago
October posted a status
"Kar Ke Wada Bhi Agar Aap Nahi Aye Ge Naam Badnaam Zamaane Me Wafa Ka Hoga"
50 minutes ago
October posted a status
"Subh Ko Jis Ne Sajai Hai Hansi Honton Par Raat Bhar Us Ko Kisi Gham Ne Sataya Hoga"
51 minutes ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service