Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Last Saturday of Every month between StartDate and EndDate

SKumar_VishMay 28 2021 — edited May 29 2021

Need a query to get the Last Cut Off Day of a month like (SUN, MON, TUE,WED,THU,FRI,SAT) from start_date and end date.
if i give the startdate as 03-may-2021 the query consider the may-2021 as first month and if i give the enddate as 01-aug-2022 then query consider aug-2022 as last month. and another parameter cut-off_day as WED
I need output as
26-may-2021
30-jun-2021
28-jul-2021
......................
31-aug-2022 (last Date)

Comments
Post Details
Added on May 28 2021
10 comments
717 views