Question
A census table contains data from the 2020 census with one row for each person in the US including their gender, occupation, age. There are
A census table contains data from the 2020 census with one row for each person in the US including their gender, occupation, age.
There are an index on the gender column, one on the age column, and one on the occupation column.
For the query
select from census where gender='F' and occupation='CEO' and age<55
which index would give the better performance?
A. Use the index on age and scan the rows from the index for gender and occupation.
B Since no one index can answer the query, do a linear scan of the table.
C. Use the index on gender and then scan the rows from the index for age and occupation
D. Use the index on occupation and then scan the rows from the index for gender and age.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The best index for the given query would be the one that allows the most efficient filtering of rows ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Statistics For Business And Economics
Authors: Paul Newbold, William Carlson, Betty Thorne
8th Edition
0132745658, 978-0132745659
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App