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) 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)

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: 3

blur-text-image

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago

Question

What is computer neworking ?

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago