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 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: 7097

.

+ 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

ϝ ι ყ α replied to ϝ ι ყ α's discussion *خواتین.........XD XD *
7 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *خواتین.........XD XD *
8 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
14 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
14 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
14 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
14 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
15 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion When You Block $omeone.......XD XD !!
17 minutes ago
ϝ ι ყ α replied to ϝ ι ყ α's discussion *1st $em VS Last Sem,................*
19 minutes ago
ϝ ι ყ α liked + Iuuoɔǝut+'s discussion Twaja farmaen
21 minutes ago
ϝ ι ყ α replied to + Adeeena's discussion chay or tum : /
23 minutes ago
ϝ ι ყ α commented on + "αяsαℓ " Ќąƶµяɨ •"'s blog post نظر لگنا کیا ہے اور بُری نظر انسان کے جسم پر کیسے اثر انداز ہوتی ہے
24 minutes ago
ϝ ι ყ α liked + "αяsαℓ " Ќąƶµяɨ •"'s blog post نظر لگنا کیا ہے اور بُری نظر انسان کے جسم پر کیسے اثر انداز ہوتی ہے
25 minutes ago
Mani Siddiqui BS VIII replied to + Adeeena's discussion chay or tum : /
29 minutes ago
Mani Siddiqui BS VIII replied to + Adeeena's discussion chay or tum : /
38 minutes ago
+ Adeeena replied to + Adeeena's discussion chay or tum : /
38 minutes ago
+ !! ATHER replied to + Adeeena's discussion chay or tum : /
44 minutes ago
ϝ ι ყ α replied to + "Jɨyą's discussion Tou ho jay shairiiii XD XD
46 minutes ago
+ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! replied to + ! ! ! ! ! ! ! ! ! ! ! ! ! ! !'s discussion تربیت اسے کہتے ہیں
55 minutes ago
Sajid posted a discussion
1 hour ago

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

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