Question: Question 2 : Storage Organization ( 1 5 marks ) Consider the following relation: Dept ( did: integer, budget: integer, floor: integer, mgr _ eid:
Question : Storage Organization marks
Consider the following relation:
Dept did: integer, budget: integer, floor: integer, mgreid: integer
lof
The building has ten floors, and department budgets vary from $ to $ million.
You can assume a uniform distribution of values. For the following query, which of the
listed index choices would you choose to speed up the query? Assume that indexonly
plans are possible ie if data is obtainable from an index, data records need not be
fetched from disk. You must justify your answer by showing the approximate IO cost of
each index choice. Circle your chosen index.
Query: Find the dids of departments that are on the th floor and have a budget of less
than $
a Clustered hash index on the floor field of Dept.
b Unclustered hash index on the floor field of Dept.
c Clustered B tree index on floor, budget fields of Dept.
d Clustered B tree index on the budget field of Dept.
e No index.
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
