Answers for "oracle sql date get month"

SQL
2

oracle sql day of month from date

select extract(day from systimestamp) from dual;
Posted by: Guest on October-08-2020
2

oracle sql date get month

-- Will return 'November'
select to_char(to_date('15-11-2010', 'DD-MM-YYYY'), 'Month') from dual
Posted by: Guest on April-20-2022
7

how to get all dates in a month in oracle

-- All dates between 01/01/2021 and 15/01/2021
SELECT to_date('01/01/2021', 'DD/MM/YYYY') + ROWNUM - 1
FROM ALL_OBJECTS
WHERE ROWNUM <= to_date('15/01/2021', 'DD/MM/YYYY') 
	- to_date('01/01/2021', 'DD/MM/YYYY') + 1;
Posted by: Guest on July-13-2021

Code answers related to "oracle sql date get month"

Code answers related to "SQL"

Browse Popular Code Answers by Language