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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!