Answers for "oracle first day of last month"

SQL
2

oracle sql first day of month

-- First day of month
SELECT TRUNC(sysdate, 'MONTH') from dual;
Posted by: Guest on January-18-2021
3

oracle first day of last year

-- Oracle: First day of previous year
SELECT trunc(add_months(sysdate, -12), 'YEAR') FROM DUAL;
Posted by: Guest on July-03-2021
0

oracle last day of month

-- Last day of current month
SELECT trim(to_date(last_day(sysdate), 'DD/MM/YYYY')) AS LASTDAY FROM DUAL;
Posted by: Guest on April-13-2021

Code answers related to "oracle first day of last month"

Code answers related to "SQL"

Browse Popular Code Answers by Language