Consider the following BCNF relations, which describe departments in a company and employees: Dept(did, dname, location, managerid)
Question:
Dept(did, dname, location, managerid)
Emp(eid, sal)
You are told that the following queries are extremely important:
• List the names and ids of managers for each department in a user-specified location, in alphabetical order by department name.
• Find the average salary of employees who manage departments in a user-specified location. You can assume that no one manages more than one department.
1. Describe the file structures and indexes that you would choose.
2. You subsequently realize that updates to these relations are frequent. Because indexes incur a high overhead, can you think of a way to improve performance on these queries without using indexes?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Database management systems
ISBN: 978-0072465631
3rd edition
Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff
Question Posted: