Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Display the employee's last name, department name, and the number of colleagues. use HR.

User_NISSYDec 7 2022 — edited Dec 7 2022

изображение_2022-12-07_230946252.pngselect last_name, department_name, (select count(nvl(department_id, 0))
from hr.employees eee
where eee.department_id=ee.department_id) as collegues
from hr.employees ee
join hr.departments dd on ee.department_id = dd.department_id

This post has been answered by Frank Kulash on Dec 7 2022
Jump to Answer
Comments
Post Details
Added on Dec 7 2022
2 comments
334 views