List the average salary for employees of each age

Assignment Help Database Management System
Reference no: EM13509317

Consider the following BCNF schema for a portion of a simple cor-porate database (type information is not relevant to this question and is omitted):

Emp (eid, ename, addr, sal, age, yrs, deptid) Dept (did, dname, ?oor, budget)

Suppose you know that the following queries are the six most common queries in the workload for this corporation and that all six are roughly equivalent in frequency and importance:

List the id, name, and address of employees in a user-speci?ed age range.

List the id, name, and address of employees who work in the department with a user-speci?ed department name.

List the id and address of employees with a user-speci?ed employee name.

List the overall average salary for employees.

List the average salary for employees of each age; that is, for each age in the database, list the age and the corresponding average salary.

List all the department information, ordered by department ?oor numbers.

1. Given this information, and assuming that these queries are more important than any updates, design a physical schema for the corporate database that will give good performance for the expected workload. In particular, decide which at-tributes will be indexed and whether each index will be a clustered index or an unclustered index. Assume that B+ tree indexes are the only index type sup-ported by the DBMS and that both single- and multiple-attribute keys are per-mitted. Specify your physical design by identifying the attributes you recommend indexing on via clustered or unclustered B+ trees.

2. Redesign the physical schema assuming that the set of important queries is changed to be the following:

List the id and address of employees with a user-speci?ed employee name. List the overall maximum salary for employees.

List the average salary for employees by department; that is, for each deptid value, list the deptid value and the average salary of employees in that de-partment.

List the sum of the budgets of all departments by ?oor; that is, for each ?oor, list the ?oor and the sum.

Assume that this workload is to be tuned with an automatic index tuning wizard. Outline the main steps in the execution of the index tuning algorithm and the set of candidate con?gurations that would be considered.

Reference no: EM13509317

Questions Cloud

What is the air pressure inside the tube : The air pressure inside the tube of a car tire is 431 kPa at a temperature of 14.5 °C. What is the air pressure inside the tube
What is the number of hours that must be billed : What is the number of hours that must be billed to reach the breakeven point and what is the new breakeven point in hours?
Cooperative strategy on the business level : Cooperative strategy on the business level
What is its angular momentum relative to the origin : A particle whose mass is 2 kg moves in the xy plane with a constant speed of 3 m/s in the x-direction along the line y = 5. What is its angular momentum (in kg m2/s) relative to the origin
List the average salary for employees of each age : Suppose you know that the following queries are the six most common queries in the workload for this corporation and that all six are roughly equivalent in frequency and importance
What dividend per share should it declare : Emerson Inc.'s would like to undertake a policy of paying out 45% of its income. Its latest net income was $1,250,000, and it had 225,000 shares outstanding. What dividend per share should it declare?
What amount did the company spend on purchases : What amount did the company spend on purchases of land, buildings, and equipment during the year? Determine the effect on the accounting equation from these purchases.
Calculate the equivalent units for materials : Calculate the equivalent units for materials (using the weighted-average method) for the month in the first processing department.
Find how are work and energy related : In a conservative system how do they relate to each other? Since the subject here is work, how are work and energy related

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd