Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

Question 4 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. 1. 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*FROMMOVIEWHEREID=80; (c) The following query will read how many disk blocks? SELECT ID FROM MOVIE; 2. Assume that MOVIE has a dense, secondary, single-level index on the TITLE attribute. Assume that on average, each title is the same for 50 films (so there are 100 different titles overall). Each block in the index can contain 50 index entries. (a) How many disk blocks does the index occupy? (b) The following query will read how many disk blocks on average (give an exact number, e.g., 50)? SELECT*FROMMOVIEWHERETITLE=Terminator; (c) The following query will read how many disk blocks? SELECT TITLE 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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions