Skip to content
Advertisement

Find name of manager with max number of subordinates

I need to write SQL query (for Oracle) which displays name of manager with max number of subordinates.

Table’s structure:

MGR_ID employees’ attribute is an EMPNO(primary key) of manager.

What I’ve tried so far:

Advertisement

Answer

Another version suggested by a_horse_with_no_name

PS : Query Not Tested

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement