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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

30 Business Days Back

409782Aug 13 2010 — edited Aug 15 2010
Hi All,

I need to find the calendar date 30 business days back from SYSDATE:

Formula: Calendar Date = SYSDATE - "30 business days"

I have a table contains:

cal_dt,bus_day,holiday
.
.
.
7/1/10,1,NULL
7/2/10,1,NULL
7/3/10,0,NULL
7/4/10,0,NULL
7/5/10,0,'Y'
7/6/10,1,NULL
.
.
.

For the life of me, I can't figure it out how to write the SQL? Please help.

Using Oracle 10g.

Thanks,
Mary
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2010
Added on Aug 13 2010
5 comments
1,173 views