Question: For every manager (i. e., group on EMP_MGR), display the manager employee code (EMP_MGR) along with the total number (i. e., use COUNT(*) here) of
For every manager (i. e., group on EMP_MGR), display the manager employee code
(EMP_MGR) along with the total number (i. e., use COUNT(*) here) of male employees (use
= 'Mr.' here) s/he manages (requires a WHERE clause checking all EMP_MGRs that are not
null). Order by the count in descending order, then by emp_mgr in descending order. Check
your final numbers against the data in the Excel file to make sure they are correct. [hint: you
should have 3 rows of output].
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
