1
edit
Changes
J.Y.S
,→8.
''James''
<pre>
select department_id, department_name, substr(nvl(city,'Not Assigned Yet'),1,25) City, count(DISTINCT job_id) '# of Jobs'
from employees
right outer join departments
using (department_id)
left outer join locations
using (location_id)
group by department_id, department_name, city
</pre>