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                                                                                                                                         [20 Marks]

 

Consider the following table:

 

Player_Country

Player_ID

Player_type

Country_name

IND-01

Wicket Keeper

India

IND-05

Bowler

India

SA-07

Batsman

South Africa

SA-09

All Rounder

South Africa

AF-01

Batsman

Afghanistan

AF-04

Wicket Keeper

Afghanistan

WI-01

Batsman

West Indies

WI-06

Spinner

West Indies

 

Create bitmap index for the following queries.

 

1) Select * from Player_Country where Player_type =”Bowler” AND  Country_name=”India”

2) Select*from Player_Country where Player_type =”Wicket Keeper” OR Country_name=”Afghanistan”

 

Note: You need to specify each and every step including index tables, bit vectors and the resultant records that satisfy the above query.

 


+ 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: 4681

Attachments:

Replies to This Discussion

bus yehi solution he jo uper dia hua he ?

problem ha is mn i thin k ye complete nhi ha ...

koi solution hi bta day

question ky mutabiq Bitmap Index Tables bnyn o aur 1 sy

phr query ky mutabiq result likh dyn....

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

cs614 assignment#3 idea solution

Attachments:

CS614 ASSIGNMENT# 3 SOLUTION By +5 ♥PAKI STUDENT♥ 
Fall2015_CS614_3.doc Fall2015_CS614_3.doc

Question 1 [20 Marks]

Consider the following table:

Player_Country
Player_ID Player_type Country_name
IND-01 Wicket Keeper India
IND-05 Bowler India
SA-07 Batsman South Africa
SA-09 All Rounder South Africa
AF-01 Batsman Afghanistan
AF-04 Wicket Keeper Afghanistan
WI-01 Batsman West Indies
WI-06 Spinner West Indies

Create bitmap index for the following queries.

1) Select * from Player_Country where Player_type =” Bowler” AND Country_name=” India”
2) Select*from Player_Country where Player_type =” Wicket Keeper” OR Country_name=” Afghanistan”
Answer:
1) Select * from Player _ Country where Player _ type =” Bowler” AND Country _ name=” India”
Bowler = 0 1 0 0 0 0 0 0
Country = 1 1 0 0 0 0 0 0
Answer AND: 0 1 0 0 0 0 0 0 
2) Select*from Player _ Country where Player _ type =” Wicket Keeper” OR Country _ name=” Afghanistan”
Wicket Keeper = 1 0 0 0 0 1 0 0
Country = 0 0 0 0 1 1 0 0
Answer OR: 1 0 0 0 1 1 0 0



Cs614  assignment # 3 idea solution

 

 

Player_Country

 

Player_ID

Player_type

Country_name

PK-01

Batsman

Pakistan

PK-05

Bowler

Pakistan

SA-07

Batsman

South Africa

SA-09

Wicket Keeper

South Africa

AU-01

All Rounder

Australia

AU-04

Bowler

Australia

WI-01

Batsman

West Indies

WI-06

All Rounder

West Indies

 

Player_type

 

Player_ID

Batsman

Bowler

Wicket Keeper

All Rounder

PK-01

1

0

0

0

PK-05

0

1

0

0

SA-07

1

0

0

0

SA-09

0

0

1

0

AU-01

0

0

0

1

AU-04

0

1

0

0

WI-01

1

0

0

0

WI-06

0

0

0

1

 

Country_name

 

Player_ID

Pakistan

South Africa

Australia

West Indies

PK-01

1

0

0

0

PK-05

1

0

0

0

SA-07

0

1

0

0

SA-09

0

1

0

0

AU-01

0

0

1

0

AU-04

0

0

1

0

WI-01

0

0

0

1

WI-06

0

0

0

1

 

 

1)      Select * from Player_Country where Player_type =”Bowler” OR Country_name=”Australia”

 

 

 

Player_ID

Bowler

OR

Australia

ANSWER

PK-01

0

0

0

PK-05

1

0

1

SA-07

0

0

0

SA-09

0

0

0

AU-01

0

1

1

AU-04

1

1

1

WI-01

0

0

0

WI-06

0

0

0

 

2) Select * from Player_Country where Player_type =”Batsman” AND Country_name=”Pakistan”

 

 

Player_ID

Batsman

AND

Pakistan

ANSWER

PK-01

1

1

1

PK-05

0

1

0

SA-07

1

0

0

SA-09

0

0

0

AU-01

0

0

0

AU-04

0

0

0

WI-01

1

0

0

WI-06

0

0

0

 

 

cs614 assignment#3 idea solution

Attachments:

RSS

Latest Activity

stylo posted a discussion
17 minutes ago
+M.Tariq Malik replied to shifa arshad's discussion MCM301 Assignment No 01 Fall 2020 Solution / Discussion Due Date: 04-dec-2020 in the group MCM301 Communication skills
35 minutes ago
Profile IconMuhammad Hamza, Touseeq Nasir, sajid and 8 more joined Virtual University of Pakistan
35 minutes ago
Rose replied to Rose's discussion CS608 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 28-11-2020 in the group CS608 Software Verification and Validation
56 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH001 Elementary Mathematics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH001 Elementary Mathematics
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH302 Business Mathematics & Statistics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH302 Business Mathematics & Statistics
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH302 Business Mathematics & Statistics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH302 Business Mathematics & Statistics
1 hour 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
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PAK301 Online Quiz No 01 Fall 2020 Solution / Discussion in the group PAK301 Pakistan Studies
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS403 Assignment 01 Fall 2020 Solution / Discussion in the group CS403 Database Management Systems
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS403 Assignment 01 Fall 2020 Solution / Discussion in the group CS403 Database Management Systems
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PSY402 Experimental Psychology Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group PSY402 Experimental Psychology
1 hour ago

Today Top Members 

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

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

.