Find the names of employees with the highest salary

Assignment Help Database Management System
Reference no: EM13187954

Suppose we have a relation Employees (SSN, name, department, salary).

 

For each of the following queries, either write the query in relational algebra and explain informally why your answer works, or explain why it cannot be written in relational algebra.

 

You may use sequences of assignments or expression trees if you like. You may use only the following operators of relational algebra: union, intersection, difference, selection, projection, products, joins (theta and natural), renaming.

 

a) Find all department(s) with at least two employees of different names.

 

b) Find the department(s) with the most people.

 

c) Find the names of employee(s) with the highest salary.

 

d) For each employee, find their name and their supervisor's name.

 

e) Find the supervisor with the lowest salary

 

f) Find the number of supervisor in every department.

Reference no: EM13187954

Questions Cloud

Estimate the population and the rate of population growth : If t denotes the time in years after 1980, find a formula for N(t), the population in millions at time t. Assuming that this rapid growth rate continues, estimate the population and the rate of population growth in the year 2000.
Neoclassicism-impressionism and abstract expressionism : compares and contrasts Neoclassicism, Impressionism, and Abstract Expressionism. How each style reflects its era and the culture. Discussion of painting techniques. Formal elements
Estimate of the total distance the student car traveled : What is your best estimate of the total distance the student's car traveled before coming to rest (note that the best estimate is probably not the over or under estimate that you can most easily find)?
State equation of the dissolution reaction : Write an equation of the dissolution reaction for each of the precipitates that was soluble in CH3COOH. Al2(SO4)3+NaOH
Find the names of employees with the highest salary : Find all department(s) with at least two employees of different names and find the department(s) with the most people and find the names of employee(s) with the highest salary.
How much money should spend to purchase health insurance : The poverty rate would be substantially lower if the market value of in-kind transfers were added to family income. The largest in-kind transfer is Medicaid, the government health program for the poor. Let's say the program costs $7,000 per recipi..
How far has each car traveled : Two cars leave an intersection at the same time, one traveling north and the other traveling east. Some time later, they are 20 miles apart, and the car going east has traveled 4 miles further than the other car.
Will the temperature of the gas increase or decrease : Two separate measurements are to be performed on a gas enclosed in a pistion and cylinder device. In the first measurement the device is well insulated so there is no flow of heat to or from the gas, and the piston is slowly moved inward compressing ..
State when dmpt is treated with base : When DMPT is treated with base, and then added to a solution of [PtCl2(K^2- dppe)], compound A forms and has the formula [PtCl(DMPT)(K^2- dppe)].

Reviews

Write a Review

Database Management System Questions & Answers

  Design a set of 3nf tables for database scenario

Draw an ER diagram for your database scenario. Design a set of 3NF tables for your database scenario.

  Database server management

Design an Entity model and construct a set of tables with suitably defined columns to support this scenario and find details of all books stocked in London

  Prepare table which is in first normal form

Prepare the example of table which is in first normal form but not in second normal form and example of a table which is in second normal form but not in third normal form.

  Construct an rea diagram

Design a minimal relational database for Pieces Boutique. By minimal, it is meant that option to post a key into existing table because of either needed participation or a discernible high load could be exercised where appropriate.

  Explain role of a database administrator

Explain the role of a database administrator,the tasks performed by this role and why this role is important in Database Management.

  Draw an er diagram for database scenario

Draw an ER diagram for database scenario. Design a set of 3NF tables for your database scenario.

  Normalization procedures suggested by shome and cornell

These are normalization procedures suggested by Shome and Cornell. EQ Tools program permits any of these normalization (or scaling) approaches.

  Explaining emp table does not have assigned primary key

Developers have noticed that EMP table doesn't have an assigned primary key. EMP_ID column has been selected to be the primary key.

  Create mock-up report to make the monthly claim

He wishes you to group data by insurance company number, with subtotals by company and grand totals for each numeric field.

  Examine use of database applications in organization

Prepare a memorandum examining use of databases in organization. Write database applications are used: Microsoft Access, DB2, Oracle, etc.

  Determining the matrix form of game

Assume a game with two players, A and B, who raise one or both hands concurrently. A wins if total number of hands raised is odd, and B wins in other way.Write down the matrix form of the game. Is there a pure strategy solution? Explain your answer..

  Prepare a database design specification

Understand and interpret a set of business rules for a database and create an Enhanced Entity Relationship Diagram that models the requirements accurately

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