Skip to content
Advertisement

subtract certain date from two dates

Let’s say it is announced that 4 Aug 2022 is a public holiday. I have a table which shows the holiday_start and holiday_end dates. How do I exclude this date “4 Aug 2022” by inputting any date i want (bind variable) and showing it as excluded day

eg. leave is from 01-Aug-2022 -> 10-Aug-2022 excluded days= 1

i’ve tried this:

and here is the table for reference

Advertisement

Answer

I dont understand very well but assuming that “04 Aug 2022” has inserted in XX_LEAVES_EXCLUDES we have:

Please me back if it’s correct or specify me better the problem.

Thank you

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement