Hi,
You can use the following query.
SELECT CURRENT_DATE - EXTRACT(DAY FROM CURRENT_DATE) AS PREV_MONTH , (ADD_MONTHS(PREV_MONTH, -12) +1) PREV_MONTH_LAST_YEAR;
The ADD_MONTH Function perform date calculation intelligently and take care of days of months.
Hi,
You can use the following query.
The ADD_MONTH Function perform date calculation intelligently and take care of days of months.