30 Business Days Back
409782Aug 13 2010 — edited Aug 15 2010Hi 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