Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Consider the relation r (Key, Name, Address). The relation takes 100 blocks on disk and holds 10000 tuples. a. What is the selectivity of

1. Consider the relation r (Key, Name, Address). The relation takes 100 blocks on disk and holds 10000 tuples.

a. What is the selectivity of an equality predicate on Key?

b. Given a secondary IndexName (height = 3) and a range predicate on Name with selectivity of 0.02, estimate the cost of doing the lookup on A.

c. Given a clustered IndexName (height = 2) and a range predicate on Name with selectivity of 0.02, estimate the cost of doing the lookup on A.

d. Given a predicate PA with selectivity of 0.3 and a predicate PB with a selectivity of 0.5, what are the selectivities of:

(NOTE: you just need to compute the selectivity value, you do not need to estimate any costs in this part. You will have to make some assumptions about correlation between PA and PB)

  1. NOT PA
  2. PA AND PB
  3. PA OR PB
  4. PA AND (NOT PB)

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

Accounting For Decision Making And Control

Authors: Jerold L. Zimmerman

8th International Edition

007131475X, 9780071314756

Students also viewed these Databases questions