Question: Consider the schema below. Student ( sid , name, login , age, gpa ) Borrow ( sid , isbn, duration ) Textbook ( isbn ,
Consider the schema below.
Studentsid name, login age, gpa
Borrowsidisbn, duration
Textbook isbn name
Assume a data block has a size of bytes. No tuple is allowed to span two blocks.
There are tuples in table Student. Each tuple takes bytes to store.
There are textbook tuples in the table Textbook. Each tuple also takes bytes.
There are borrowing records stored in Borrow. Each tuple takes bytes.
For each of the following queries, estimate the number of blocks to be retrieved in the worst case
under specified conditions.
a There is no index available;
query: Student
b Use a B tree index on attribute Student.sid with height ;
query: Student
c Use block nested loop join, and main memory only holds one block per relation.
query: Student Borrow
d Use nested loop join and the smaller relation fits entirely in the memory;
selection is done on the fly" in memory.
query: Borrow Textbook
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
