Clarissa M.

asked • 07/26/21

NEED HELP ASAP!!!

  1. Use HR database for this assignment.
  2. Number each of the statements


Write SQL statement:

1. Return all the country names and the name of their Regions.

2. Return the name of the manager of Finance Department.

3. Return the name of the employees who manage more than 3 employees.

4. Return the employee that have salary that is not in the range between the minimum salary and maximum salary of their job. For example, you need to return Adam's if their salary is 6000 and they work a job that has Min_salary 7000 and Max_salary. 10000.

5. Return all the locations that are in countries with multiple locations. For example, if Canada has 2 locations, then I need to return these 2 locations while if Sweden has only 1 location then you do not need to return that location.


*NOTE*

  1. show all the codes for each questions.
  2. Write the SQL in Transact SQL

1 Expert Answer

By:

John F. answered • 07/26/21

Tutor
4.9 (21)

Software Developer/Businessman with Fondness for Teaching

Clarissa M.

I did these for Questions 4 & 5: Question 4: SELECT name_of_employee_column FROM name_of_table WHERE salary < min_salary OR salary > max_salary; Question 5: SELECT COUNT(LocationID), Country FROM Locations GROUP BY Country; Is this correct?
Report

07/28/21

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.