I want to obtain the last day of the previous two years.
I have following code, which is giving me "12/31/2016". Whereas, I want "12/31/2015". What do I need to do to get the desired result.
LAST_DAY(ADD_MONTHS(TRUNC(TRUNC(Report_End_Date , 'Year')-2 , 'Year'),11))