tonMachine100
asked on
calculating 20 working days into future - oracle sql
i need to write a query that outputs the date that is 20 working days in the future from today.
so for example if i ran the query today (18-02-2015) the output would be 18-03-2015.
The query would exclude weekend days and bank holidays.
I have a table called non_working_days which ill need to use somehow! the structure is:
any help to write the query is appreciated
so for example if i ran the query today (18-02-2015) the output would be 18-03-2015.
The query would exclude weekend days and bank holidays.
I have a table called non_working_days which ill need to use somehow! the structure is:
NWD_ID NWD_DATE NWD_REASON
J1416 21-Feb-15 WEND
J1417 22-Feb-15 WEND
J1418 28-Feb-15 WEND
J1419 01-Mar-15 WEND
J1420 07-Mar-15 WEND
J1421 08-Mar-15 WEND
J1422 14-Mar-15 WEND
J1423 15-Mar-15 WEND
J1424 21-Mar-15 WEND
J1425 22-Mar-15 WEND
J1426 28-Mar-15 WEND
J1427 29-Mar-15 WEND
J1428 03-Apr-15 BHOL
J1429 04-Apr-15 WEND
J1430 05-Apr-15 WEND
J1431 06-Apr-15 BHOL
etc.
any help to write the query is appreciated
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.