Consider the following table: The employee table is stored in a heap file organisation which has 500
Question:
The employee table is stored in a heap file organisation which has 500 pages and 100,000 employees evenly distributed among them (i.e 200 tuples per page).
You want to improve the performance of the following query on the table above:
Note that there are 1% of employees whose salary > 200000. Assume that there are 25 pages in the buffer available for the query.
Given the following choices, which one of the options below would you choose? Explain the query plan for each option and also estimate the costs of each query plan in terms of disk I/Os to justify your choice.
Option 1: An unclustered B+ tree index on Employee
Option 2: A dense clustered B+ tree on Employee
Option 3: No index
help me do this question
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart