Question
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
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 Started