Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the purpose of tuning your database that has begun to slow down for some queries, you are looking for the best plan to execute

For the purpose of tuning your database that has begun to slow down for some queries, you are looking for the best plan to execute the following queries on the relation described below: The relation you are dealing with is Employee with attributes ename, title, dname, and address; all are string fields of the same length. The ename attribute is a candidate key.

The relation contains 10,000 pages. There are 10 buffer pages. (When answering the questions, make sure to describe the plan you have in mind.)

The first query is: SELECT E.title, E.ename FROM Employee E WHERE E.title=Administrator Assume that only 10% of Employee tuples meet the selection condition. a. Suppose that a clustered B+ tree index on ename is (the only index) available. What is the cost of the best plan? (5 marks)

Candidate key is ename Relation contains 10,000 pages, 10 buffer pages Therefore, the cost G is the best plan = 10,000 b. Suppose that a clustered B+ tree index on title is (the only index) available. What is the cost of the best plan? (5 marks)

c. Suppose that a clustered B+ tree index on dname is (the only index) available. What is the cost of the best plan? (5 marks)

d. Suppose that a clustered B+ tree index on is (the only index) available. What is the cost of the best plan? (5 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

ISBN: 0123814790, 9780123814791

More Books

Students also viewed these Databases questions