Question: Consider the schema below. Student ( sid , name, login , age, gpa ) Borrow ( sid , isbn, duration ) Textbook ( isbn ,

Consider the schema below.
Student(sid, name, login, age, gpa)
Borrow(sid,isbn, duration)
Textbook (isbn, name)
Assume a data block has a size of 1024 bytes. No tuple is allowed to span two blocks.
There are 5000 tuples in table Student. Each tuple takes 100 bytes to store.
There are 10000 textbook tuples in the table Textbook. Each tuple also takes 100 bytes.
There are 30000 borrowing records stored in Borrow. Each tuple takes 150 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: age=18(Student)
(b) Use a B+ tree index on attribute Student.sid with height 4;
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: duration100(Borrow |>| Textbook)
 Consider the schema below. Student(sid, name, login, age, gpa) Borrow(sid,isbn, duration)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!