|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
Query is to display the employee details from the dept where the max. no of employees exists. select * from emp where deptno in (select deptno from emp group by deptno having count(*) = (select max(count(*)) from emp group by deptno)) is it possible to optimize this query. Thank you very much / |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > display the rows from the dept where the max. no of employees exists. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|