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!

How to calculate start date of the week based on week number ?

941425Jul 31 2012 — edited Jul 31 2012
i need to get week number of the current date and based on that i need to calculate start date falling in the same week for last year.
Eg. today is 31st week of year and 31st july date. so what will be the date on the 31st week of last year. i need the start date of that week.

we can calculate the week number by select to_char(sysdate,'ww') from dual.

DO we have a single line query for that or will it require writing a pl/sql block ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2012
Added on Jul 31 2012
3 comments
1,576 views