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 find the 1st sunday in a month

555356Feb 7 2007 — edited Feb 7 2007
v_end := '01-nov-' || in_year;
v_sql_text := 'select next_day('''||v_end||''',''sunday'')+7 from dual';

this works except that nov 1st is a sunday. better idea?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2007
Added on Feb 7 2007
7 comments
4,076 views