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!

Need to find adjecent sunday for giving date

1022016May 15 2014 — edited May 15 2014

Hi,

Very silly and easy task,Can some one help to find out immediate sunday if I pass some date for example

We have below week

28-APR-2014 -- 4 -MAY-2014

if I pass 29-APR-2014 it should give me sunday date i.e     4 -may -2014

Try ::I was trying to achieve this by below method

I pass some date and find out adjacent Monday like that

select trunc(sysdate,'iw') from dual;

and try to add 6 days but not to add

Regards,

rahul

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2014
Added on May 15 2014
9 comments
264 views