0% found this document useful (0 votes)
26 views1 page

SQL Query 5

This SQL query selects the job IDs of employees from departments 10 and 20 by joining the employees and departments tables on their shared department ID field, grouping the results by each unique job ID.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

SQL Query 5

This SQL query selects the job IDs of employees from departments 10 and 20 by joining the employees and departments tables on their shared department ID field, grouping the results by each unique job ID.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

select emp.job_id from departments dept inner join employees emp on ( emp.depart ment_id = dept.department_id) where dept.

department_id in (10,20) group by emp.job_id;

You might also like