2,599 views
3 votes
3 votes

Q.Consider a table that describes the customers:

Customers(custid,name,gender,rating)

The rating value is an integer in the range 1 to 5 and only two values(male and female) are recorded for gender.Consider the query "how many male customers have a rating of 5" ? The best indexing mechanism appropriate for the query is

A) Linear hashing

B)Extensible Hashing

C)B+tree

D)Bit-mapped index

1 Answer

2 votes
2 votes
Since The rating value is an integer in the range 1 to 5

and only two values(male and female) (assume male=0 and female=1) are recorded for gender as we see both the values of rating as well as gender are fixed,the bit mapped indexing is best suitable.

hence option (d) is correct.

Related questions

8 votes
8 votes
5 answers
2
makhdoom ghaya asked May 2, 2016
7,392 views
Embedded pointer providesA secondary access pathA physical record keyAn inverted indexA primary key
0 votes
0 votes
0 answers
3