Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Consider a relation r(A, B, C, D) that has a clustering index on A and a non-clustering index on each of the other attributes.

image text in transcribed

2. Consider a relation r(A, B, C, D) that has a clustering index on A and a non-clustering index on each of the other attributes. Suppose that r has 1000 blocks and 5000 tuples. Assume that the number of different values of attribute A in r is 20 (you may assume they range from 1..20), the number of different values of attribute B in R is 1000 (you may assume they range from 1..1000), the number of different values of attribute C in R is 5000 (you may assume they range from 1..5000), and the number of different values of attribute D in R is 500. Ignoring the index costs, give the best query plan for each of the following selections: 2. Consider a relation r(A, B, C, D) that has a clustering index on A and a non-clustering index on each of the other attributes. Suppose that r has 1000 blocks and 5000 tuples. Assume that the number of different values of attribute A in r is 20 (you may assume they range from 1..20), the number of different values of attribute B in R is 1000 (you may assume they range from 1..1000), the number of different values of attribute C in R is 5000 (you may assume they range from 1..5000), and the number of different values of attribute D in R is 500. Ignoring the index costs, give the best query plan for each of the following selections

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

6. What data will she need?

Answered: 1 week ago

Question

1. How did you go about making your selection?

Answered: 1 week ago