Find the enames of managers who manage the departments

Assignment Help Database Management System
Reference no: EM13934293

Consider the following relational schema. An employee can work in more than one department; the pct time field of the Works relation shows the percentage of time that a given employee works in a given department.

Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pct time: integer) Dept(did: integer, budget: real, managerid: integer)

Write the following queries in SQL:

1. Print the names and ages of each employee who works in both the Hardware department and the Software department.

2. For each department with more than 20 full-time-equivalent employees (i.e., where the part-time and full-time employees add up to at least that many full-time employees), print the did together with the number of employees that work in that department.

3. Print the name of each employee whose salary exceeds the budget of all of the departments that he or she works in.

4. Find the managerids of managers who manage only departments with budgets greater than $1,000,000.

5. Find the enames of managers who manage the departments with the largest budget.

6. If a manager manages more than one department, he or she controls the sum of all the budgets for those departments. Find the managerids of managers who control more than $5,000,000.

7. Find the managerids of managers who control the largest amount.

Reference no: EM13934293

Questions Cloud

How leadership skills develop : Discuss and support your position on whether leaders are born or made using current research. This discussion includes the following aspects:- A brief definition of leadership and How leaders are identified.
How well do you think a general credo : How well do you think a general credo works in guiding action? Would you prefer a typical mission statement or a clear set of policy outlines, for example? Do you see any way in which the Johnson & Johnson Credo could be improved or modified?
Retail trade and extraction of crude petroleum : This section about DRB(Data Requirement Brief). The variable of these data collected is turnover of two sectors: Sector 52: Retail Trade and Sector 11: Extraction of Crude Petroleum. Those companies are random choose as the sample of group of reta..
Provide perspective on significance of group counseling : Provide your perspective on the significance of group counseling. Explain how group members might benefit from their participation in group work. Explain why group work is emphasized in professional counseling literature.
Find the enames of managers who manage the departments : Find the enames of managers who manage the departments with the largest budget. Find the managerids of managers who manage only departments with budgets greater than $1,000,000.
Provide a dsm-v diagnosis : Provide a DSM-V diagnosis, including code, R/O, and all relevant specifiers.
Appropriate research methodologies and techniques : Can Instant message replace e mail in the future" - Can Instant message be a primary source of internal communication? -How this instant message system will work? -What cost would be? etc...
What should lewis have done : Of all the decisions made by Ken Lewis in this case study, which one do you think did the most damage to his reputation? Why?
Different logistics activities conducted by iaj : a) What are IAJ's logistic requirements and how would you go about identifying them? b) What are the different logistics activities conducted by IAJ and are they being effectively employed by the company?

Reviews

Write a Review

 

Database Management System Questions & Answers

  Explain what is the importance of data entry validation

Preserving the integrity of the data that enters into and is stored within a database is extremely important. What is the importance of data entry validation and does MS Access offer any features for validation

  Provide an relational schemas

Find the names and company names of all employees sorted in ascending order of company name and descending order of employee names of that company.

  Describe a dbms and its functions

Describe a DBMS and its functions. Name some of the popular DBMS software and you should search the Internet for the updated DBMS technology.

  Data manipulation in excel

Data Manipulation in EXCEL-How to enter in data manually to an EXCEL spreadsheet and then create formulas to perform calculations on that data. In this lesson, you will learn how to import data to EXCEL from an external source,use tools built-in t..

  How many green books it has

Webster Library wants to know how many green books it has. Out of the 500 shelves of books, 3 shelves were selected. These shelves hold 150 books each. 54 of the books sampled were green.

  Identify the degree and cardinalities of the relationship

A piano manufacturer wants to track all pianos it makes. Each piano has a unique serial number and a manufacturing completion date. Each instrument represents exactly one piano model, all of which have an identification number and model.

  Installing and configuring integration services

Steps you through the process of installing SQL Server Analysis Services in a named instance. The instance will be named ASvc and will include Integration Services and management components, including BIDS.

  What is the most common disease for each age group

Explore a possible relationship between the DRG_PRICE and the TOTAL_CHARGES. Is there a linear relationship between these two properties?

  Examine hard-to-obtain data from two separate databases

You are interested in examining some hard-to-obtain data from two separate databases. Each database comprises numerical values - so there are 2n values total

  Discuss common input - output technologies

Create a Microsoft Word table that identifies the advantages, disadvantages, computer requirements, initial costs, and future savings for an organization considering an engagement in virtualization.

  Demonstrate academic and professional literacy

Demonstrate academic and professional literacy by collating theoretical and practical course material into a workable application through understanding concepts and their practical application using .NET.

  Modifying a database design in visio

Modifying a Database Design in Visio-  Discuss the degree to which you believe the Visio diagram reflects the database design

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