SELECIONAR o start_date, endday, endmonth,
CASO
QUANDO start_date <�>ADD_MONTHS (TRUNC (start_date, “YYYY "),
endmonth - 1
)
+ endday
- 1
ENTÃO ADD_MONTHS (TRUNC (start_date, “YYYY "), endmonth - 1)
+ endday
- 1
ADD_MONTHS OUTRO (TRUNC (start_date, “YYYY "), endmonth + 11)
+ endday
- 1
End_date da EXTREMIDADE
DE ............