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

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 Correct Answer Bit-mapped index

Bitmap indexes have traditionally been considered to work well for low-cardinality columns, which have a less number of distinct values. Hence in the given case bitmap index should be used.

Related Questions

Each question below is followed by two statements I and II. You have to determine whether the data given in the statements are sufficient for answering the question. You should use the data and your knowledge of Mathematics to choose the best possible answer. What is the average weight of new students added? I. In a class 60% students are male and there average weight is 15 kg more than the female students, 9 males and 6 new female students joined the class and the average weight of the class increased by 0.84 II. Total male students in the class is 12 more than female students adding 9 male students to the class increases the average weight of male students by 1 kg and adding 6 female students increases the average weight of female students by 0.6.