We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Looking For Something at Site? Search Below

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.

 

 


+ 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)


Views: 7272

Attachments:

Replies to This Discussion

solution of assignment pls......

ye kia hy or kaun si assignment ka solution hy ?

AoA Sir Yah to 3rd Assignment k solution hn..we want 4th assignment solution .....if you have 

than upload

yar koi to ALLAH ka banda solution share kijye....

plz koi solution post kr dy ya idea hi dy dy plzzzzzzzzz

Attachments:

hello miss second ka solution bi bana lo .

Students es link ko check kro :P complete solution k liye

http://vustudents.ning.com/group/cs614datawarehousing/forum/topics/...

kia ye solution theek h??????/ any one please helppp...........

As we required data blocks for solving our question.Let us consider:

 

Size of table_Player = 9

Qualifying blocks for table_player = QB(player) = 4

Size of table_Award = 12

Qualifying blocks for table_Award = QB(Award) = 4

Now , if table_Player is outer table:

Join cost  Player&Award = 9+4*12 = 9+60 = 69 I/O’s

 

Using other order,if table_Award is outer table and table_Player is inner table.

Join cost Award&Player =  12+4*9=12+36= 48 I/O’s

So we get minimum I/O by using table_Award as outer table and table_Player as inner table.

9+4*12 = 9+60 = 69 I/O’s ?>???

9+48=////

or ye size of player kahan py hy ???

RSS

Latest Activity

+ ! + Ops updated their profile
2 hours ago
Black Wolf updated their profile
3 hours ago
Muhammad Bilal replied to +M.Tariq Malik's discussion FIN624 GDB No 01 Fall 2020 Solution / Discussion in the group FIN624 Islamic Mode of Financing
3 hours ago
Muhammad Bilal replied to Fragrance of Islam's discussion ENG301 Business Communication GDB No 01 Fall 2020 Solution / Discussion in the group ENG301 Business Communication
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion SOC101 Introduction to Sociology Online Quiz No 01 Fall 2020 Solution / Discussion Last Date: 01-12-2020 in the group SOC101 Introduction to Sociology
3 hours ago
Muhammad Usman liked +M.Tariq Malik's group EDU430 ICT in Education
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS402 Assignment 01 Fall 2020 Solution / Discussion in the group CS402 Theory of Automata
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion GSC201 Teaching of General Science Assignment 01 Fall 2020 Solution / Discussion Due Date: in the group GSC201 Teaching of General Science
3 hours ago
+M.Tariq Malik liked +M.Tariq Malik's discussion GSC201 Teaching of General Science Assignment 01 Fall 2020 Solution / Discussion Due Date:
3 hours ago
+M.Tariq Malik added a discussion to the group GSC201 Teaching of General Science
3 hours ago
Saqib replied to +M.Tariq Malik's discussion MTH501 Linear Algebra Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH501 Linear Algebra
3 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH641 Functional Analysis Online Quiz No 01 Fall 2020 Solution / Discussion in the group MTH641 Functional Analysis
3 hours ago

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

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

.