19 solved exercises

Join

Solutions and examples for MySQL.

Showing 1–19 of 19 problems

  1. 01Show the region_name and corresponding country_name
  2. 02Show the department_name and corresponding country_name
  3. 03Show the employee_name and his country_name
  4. 04Show the employee_name and his job_title
  5. 05Show the employee_name and his manager_name
  6. 06Show the department_name and the manager_name of this department
  7. 07Show the employee_id, his salary, his manager_id, his manager_name, his manager_salary
  8. 08Show the employee_id, his join_date, his manager_id, his manager_name, his manager_salary
  9. 09Show the manger_name and his manager_name(manager of manager)
  10. 10Show the employees name and other employees name who receives higher salary than him
  11. 11Show the employees name and other employees name who is hired after him
  12. 12For each region, show the region_name and total no of employees in that region
  13. 13For each job, show the job_title and total no of employees
  14. 14For each country, show the total no of departments in that country
  15. 15For each department, show the department_name and corresponding total no of ex-employees(job_history table) from that department
  16. 16For each manager, show the manager_name and total no of employees under his supervision
  17. 17For each manager, show the manager_name and total no of employees under his supervision who receives higher salary than him
  18. 18Show the employee name and no of employees who receives lower salary than him
  19. 19Show the employee name and no of employees who is hired before him