Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
accept dt_beg prompt "Enter the start date (DD-MON-YYYY) : "
accept dt_end prompt "Enter the end date (DD-MON-YYYY) : "
select Month_End
from (select last_day(add_months(trunc(to_date('&dt_beg','DD-MON-YYYY'),'MM')
,(rownum-1))) Month_End
from all_tab_columns
where rownum <= months_between(to_date('&dt_end','DD-MON-YYYY')
,to_date('&dt_beg','DD-MON-YYYY')
)+1
)
where Month_end <= last_day(to_date('&dt_end','DD-MON-YYYY'))
/
SQL> @tt_600
Enter the start date (DD-MON-YYYY): 15-NOV-2010
Enter the end date (DD-MON-YYYY): 16-APR-2011
MONTH_END
---------------
30-NOV-10
31-DEC-10
31-JAN-11
28-FEB-11
31-MAR-11
30-APR-11