Question: - - Each question should be answered with only one SQL statement. - - Q 1 ) For each department, retrieve the department number, -

-- Each question should be answered with only one SQL statement.
--Q1) For each department, retrieve the department number,
--the number of employees in the department and
--their average salary in the department.
-- then order the result by the average salary in decending order.
-- output only departments that have the average salary higher than 50000.
--2) Retrieve the first name, last name, project name, and
-- weekly work hours per project of each employee
-- who works for department "Research."
-- Display the output in the descending order of last name and
-- then the ascending order by project name.
--3) Retrieve the first name and last name of manager
-- who are managing department(s) located in "Houston"
- - Each question should be answered with only

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!