Retrieve data from emp table
The Query
select to_char(hiredate,'yyyy'),count(*)
from emp
group by to_char(hiredate,'yyyy')
having count(*)>=(select max(count(*)) from emp group by to_char(hiredate,'yyyy'))
;
Retrieve data from emp table
The Query
select to_char(hiredate,'yyyy'),count(*)
from emp
group by to_char(hiredate,'yyyy')
having count(*)>=(select max(count(*)) from emp group by to_char(hiredate,'yyyy'))
;