Как насчет этого? Код, который вам нужен, начинается со строки № 12.
SQL> with test (emp_id, status, sup_id) as
2 (select 102, 'P', 19 from dual union all
3 select 102, 'P', 76 from dual union all
4 select 103, 'C', 19 from dual union all
5 select 104, 'C', 75 from dual union all
6 select 107, 'C', 74 from dual union all
7 select 107, 'P', 73 from dual union all
8 select 110, 'C', 19 from dual union all
9 select 110, 'P', 15 from dual union all
10 select 110, 'P', 17 from dual
11 )
12 select emp_id,
13 sum(case when status = 'P' then 1 else 0 end) pending,
14 sum(case when status = 'C' then 1 else 0 end) completed,
15 count(*) all_orders
16 From test
17 group by emp_id
18 order by emp_id;
EMP_ID PENDING COMPLETED ALL_ORDERS
---------- ---------- ---------- ----------
102 2 0 2
103 0 1 1
104 0 1 1
107 1 1 2
110 2 1 3
SQL>