SELECCIONAR el start_date, endday, endmonth,
CASO
CUANDO start_date <�>ADD_MONTHS (TRUNC (start_date, “YYYY "),
endmonth - 1
)
+ endday
- 1
ENTONCES ADD_MONTHS (TRUNC (start_date, “YYYY "), endmonth - 1)
+ endday
- 1
ADD_MONTHS OTRO (TRUNC (start_date, “YYYY "), endmonth + 11)
+ endday
- 1
End_date del EXTREMO
DE ............