- Use HR database for this assignment.
- 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*
- show all the codes for each questions.
- Write the SQL in Transact SQL
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?07/28/21