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 loca-...

eexplainDept(did, dname, location, managerid)<br>Emp(eid, sal)<br>You are told that the following queries are extremely important:<br>List the names and ids of managers for each department in a user-specified loca-<br>tion, in alphabetical order by department name.<br>Find the average salary of employees who manage departments in a user-specified<br>location. You can assume that no one manages more than one department.<br>1. Describe the file structures and indexes that you would choose.<br>2. You subsequently realize that updates to these relations are frequent. Because<br>indexes incur a high overhead, can you think of a way to improve performance on<br>these queries without using indexes?<br>

Extracted text: 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 loca- tion, 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?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here