Académique Documents
Professionnel Documents
Culture Documents
================================================================================
====================================
--First day of the month as per the column date value
select trunc(datecolumn,'MM') from dual
-select dense_rank() over (partition by to_char(HIREDATE,'MON') order by count(em
pno)desc) rnk,to_char(HIREDATE,'MON'),count(empno) from emp group by to_char(HI
REDATE,'MON');
select to_char(HIREDATE,'MON'),count(empno) from emp group by to_char(HIREDATE,'
MON') order by count(empno) desc