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

  Find all non-trivial dependencies

Compute the closure sets of R, find all non-trivial dependencies and what are the candidate keys of R?

  Describe entity-relationship model

Describe the entity-relationship model. How are entities, relationships, and attributes represented in this model? What is a composite entity? Describe the approach to diagrams that uses a crow's foot.

  Prepare a set of non-functional requirements

Need a system that networks its 3 campuses in the US and one campus in Singapore. Transaction data for all campuses should be available to all locations. In addition, students should be able to use the Internet to view classes, enroll, register, and ..

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

  Design tables in 3nf various codes for at least three fields

Create tables in 3NF. As you create the database, include different codes for at least three of the fields. Use sample data to populate fields for at least three records in each table.

  Patients post cardiac bypass surgery

Monitor Renal Outcomes in patients post cardiac bypass surgery?

  Create a database using oracle packaged procedure

Create a database using Oracle packaged procedure

  Describe binary lock function

Describe relationships with example. Also illustrate degree of relationship for that example. What do you mean by locks. Write dow a binary lock function.

  List course along with names of students from database table

List the courses (D-code and C-no), along with the names of the students who are currently taking them. List all the courses (D-code and C-no) that John (i.e., S-Name=''John'') got 'A' grade.

  What is the output when the following script is executed

Determine the answer (expected result) based on your reading of from text book: -  Just show the expected output when you run the syntax.

  Implement direct-address table keys of stored elements

Suggest how to implement direct-address table in which keys of stored elements don't require to be distinct and elements can have satellite data.

  Design database for company organized into departments

Database designers stated following dimension of "miniworld"- to be represented in Company Supplier-Part database: company is organized into departments. Each department has unique name, unique number.

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