Inactive Tutor answered 07/26/21
I can help with this. But I need to see the database tables so that I can write the select statements. Also, none of your select statements need to be in transactions as they only select data.
Clarissa M.
asked 07/26/21Write 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*
Inactive Tutor answered 07/26/21
I can help with this. But I need to see the database tables so that I can write the select statements. Also, none of your select statements need to be in transactions as they only select data.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
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