programming-examples/sql/JoinHRDatabase/20. Write a query in SQL to display the details of jobs which was done by any of the employees who is presently earning a salary on and above 12000.sql
2019-11-18 14:05:53 +01:00

7 lines
299 B
SQL

/*20. Write a query in SQL to display the details of jobs which was done by any of the employees who is presently earning a
salary on and above 12000.*/
SELECT a.*
FROM job_history a
JOIN employees m
ON (a.employee_id = m.employee_id)
WHERE salary >= 12000;