Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assume that the MOVIE table has 5000 tuples. It has a primary key column called ID that has a range of [1 - 5000]. It

Assume that the MOVIE table has 5000 tuples. It has a primary key column called ID that has a range of [1 - 5000]. It also has an column called TITLE. Assume that 10 MOVIE tuples can fit into a disk block. Each scenario given below is independent, that is because ID is indexed in one scenario does not mean it is indexed in the others. Also, please keep in mind that it is best to show calculations.

Assume that MOVIE has a sparse, primary,B+-tree index. Each node in the index has a maximum fanout of 50 (each node in the index can have 50 children). Each node in the index is 100% full.

(a) How many disk blocks does the index occupy? (Drawing the index may help).

(b) The following query will read how many disk blocks (give an exact number, e.g., 50)?

SELECT * FROM MOVIE WHERE ID = 80;

(c) The following query will read how many disk blocks?

SELECT ID FROM MOVIE;

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago