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!

how to find the number of employees under each manager

755220Feb 21 2010 — edited Feb 21 2010
hi all,
i am trying to this query
select a.empno,a.empno,a.ename,a1.ename from emp a,emp a1
where a.mgr=a1.empno
this query returns each employee and their manager name
my request is
how to count the number of employees under each manager
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2010
Added on Feb 21 2010
5 comments
7,411 views