Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Statistics For Business And Economics

Authors: Paul Newbold, William Carlson, Betty Thorne

8th Edition

0132745658, 978-0132745659

More Books

Students also viewed these Databases questions

Question

the search button is not working when you search for products

Answered: 1 week ago