Question: Task 3 : Storage and queries with a clustered B + tree Assume that we have a database storing information about persons: Person ( PersonID
Task : Storage and queries with a clustered B tree
Assume that we have a database storing information about persons:
PersonPersonID FirstName, LastName, Birthyear, DepartmentNo
We have information about persons, where each person will be stored in a byte
record. The records are stored in blocks of size KB byte assume therefore that
each block can contain records. The table is stored in a clustered B tree with PersonID as
the search key.
a Show that the tree has blocks at the leaf level level if we assume a fill
degree of
b Assume that PersonID is stored with byte and that a block identifier is stored with
byte. Show that the tree has blocks at level and only a single block root at level
if we assume a fill degree of
c Give an estimate for how many blocks are accessed by the following SQL queries.
Write a short explanation for each answer, and remember to write down any
assumptions that you find necessary.
SELECT FROM Person where PersonID ;
SELECT FROM Person;
SELECT FROM Person ORDER BY PersonID ASC;
SELECT FirstName, LastName FROM Person WHERE PersonID ;
Assume that of the persons satisfy the requirement.
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
