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

Data warehousing (CS614)
Assignment # 03 (GRADED)
Total marks = 20
Deadline Date = 28-July-2015

Please carefully read the following instructions before attempting the assignment.

Assignment Guidelines
It should be clear that your assignment would not get any credit if:

 The assignment is submitted after due date.
 The submitted assignment does not open or file is corrupt.
 The assignment is copied. Note that strict action would be taken if the submitted assignment is copied from any other student. Both students will be punished severely.

1) You should consult recommended books to clarify your concepts as handouts are not sufficient.
2) You are supposed to submit your assignment in .doc or .docx format. Any other formats like scan. images, PDF, Zip, rar, bmp etc will not be accepted.
3) You are advised to upload your assignment at least two days before Due date.

Important Note:

Assignment comprises of 20 Marks. Note that no assignment will be accepted after due date via email in any case (whether it is the case of load shedding or emergency electric failure or internet malfunctioning etc.). Hence, refrain from uploading assignment in the last hour of the deadline, and try to upload Solutions at least 02 days before the deadline to avoid inconvenience later on.

For any query, please contact: CS614@vu.edu.pk

Consider the following table:

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

Question no. 1:

Consider the following two queries:

1) Select * from Player_Country where Player_type =”Bowler” OR Country_name=”Australia”
2) Select * from Player_Country where Player_type =”Batsman” AND Country_name=”Pakistan”

Create bitmap index for the above given queries.

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

+ How to Follow the New Added Discussions at Your Mail Address?

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

.

+ 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

Index table for Country_name

ID         Pakistan      South Africa       Australia     West indes

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

Bit vector for

Pakistan= 11000000

South Africa = 00110000

Australia = 00001100

West Indies = 00000011

Now i think run query using bit vector is too easy you can manage it your own

Hadi  please query ka solution be post ker dea

Dear construct index table for Player_type as i did for Country_type make bit vector for the table then simply OR and AND Operation gives the query result. It is so simple try your self

Yea

hadi dear bit vector ma thora shak ha.are you sure these are correct.

her 2 ids ke liye bit vector same kese ho sakta ha

dnt mind for this i am just asking 

correct 100%

dear hadi please share complete solution

please hadi solution upload ker do

uffff koi smjh nae lag rhe idr cmnt kesy krty koi notification b ni milta :(

Salam.. koi btaye ga k AND , OR operators kaisy lgny hen is mein??

Bitmap Indexes: Concept
Index on a particular column
Index consists of a number of bit vectors or bitmaps
Each value in the indexed column has a corresponding bit vector (bitmaps)
The length of the bit vector is the number of records in the base table
The ith bit is set to 1 if the ith row of the base table has the value for the indexed column

§ Index on a particular column
§ Index consists of a number of bit vectors or bitmaps
§ Each value in the indexed column has a corresponding bit vector (bitmaps)
§ The length of the bit vector is the number of records in the base table
§ The ith bit is set to 1 if the ith row of the base table has the value for the indexed columnBitmap Indexes: Concept
§ Index on a particular column
§ Index consists of a number of bit vectors or bitmaps
§ Each value in the indexed column has a corresponding bit vector (bitmaps)
§ The length of the bit vector is the number of records in the base table
§ The ith bit is set to 1 if the ith row of the base table has the value for the indexed columnBitmap Indexes: Concept§ Index on a particular column§ Index consists of a number of bit vectors or bitmaps§ Each value in the indexed column has a corresponding bit vector (bitmaps)§ The length of the bit vector is the number of records in the base table§ The ith bit is set to 1 if the ith row of the base table has the value for the indexed column§ Index on a particular column§ Index consists of a number of bit vectors or bitmaps§ Each value in the indexed column has a corresponding bit vector (bitmaps)§ The length of the bit vector is the number of records in the base table§ The ith bit is set to 1 if the ith row of the base table has the value for the indexed column

final solution send kar dayin koi bahi

RSS

Latest Activity

Rana Ali replied to Rana Ali's discussion Alfaz
1 hour ago
Rana Ali liked Rana Ali's discussion Alfaz
1 hour ago
Rana Ali liked Rana Ali's discussion Psy511 assignment no 1
1 hour ago
Rana Ali added a discussion to the group PSY511 Environmental Psychology
1 hour ago
Rana Ali liked + M.Tariq Malik's group PSY511 Environmental Psychology
1 hour ago
Rana Ali joined + M.Tariq Malik's group
1 hour ago
Rana Ali liked + M.Tariq Malik's discussion EDU302 Human Development and Learning Assignment No 01 Fall 2019 Solution & Discussion
1 hour ago
MUHAMMAD USMAN replied to MIT's discussion Operating Systems(CS604) Assignment # 01 Deadline Date 16-11-2019 in the group CS604 Operating Systems
1 hour ago
Muhammad Awais replied to Usman Mughal's discussion Assignment No. 01 Semester: Fall 2019 in the group CS101 Introduction to Computing
2 hours ago
Muhammad Awais joined + M.Tariq Malik's group
2 hours ago
Farhan Amin replied to Farhan Amin's discussion your vu email address will deleted
3 hours ago
Farhan Amin replied to Farhan Amin's discussion your vu email address will deleted
3 hours ago
+ ! ! ! ! ! AaiMa AnsaRi liked + M.Tariq Malik's discussion CS201 Assignment No 01 Fall 2019 Solution & Discussion Due Date: 14-11-2019
3 hours ago
+ ! ! ! ! ! AaiMa AnsaRi replied to + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion in the group MGT211 Introduction To Business
3 hours ago
+ ! ! ! ! ! AaiMa AnsaRi joined + M.Tariq Malik's group
3 hours ago
+ ! ! ! ! ! AaiMa AnsaRi liked + M.Tariq Malik's discussion MGT211 GDB Fall 2019 Solution & Discussion
4 hours ago
+ Abb@s replied to Farhan Amin's discussion your vu email address will deleted
4 hours ago
+ Danial replied to Farhan Amin's discussion your vu email address will deleted
5 hours ago
Shine--Ex-VUStudent liked + "J ɨ y ą ⋆'s discussion meliiiiiiii dailyyyyyyyyyyyyyyyyy milkkkkkkkkkkkkkkkkk :(
5 hours ago
+ Danial replied to Farhan Amin's discussion your vu email address will deleted
5 hours ago

Today Top Members 

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

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