0
Good afternoon,
I have a table: national holidays
- id
- date
- doubt
I have a table: holidays (loose ends and amendments)
- id
- date
- description
in another table: obligation (where through a date informed by the user "prazoLegal" I would have to calculate -5 days taking Saturdays, Sundays and if I have any separate date on the holiday table, and give the dataCorrigida.
Example.
prazoLegal = 26/01/2017
dataCorrigida would have to be = 18/01/2017
ie (-8) because 25/01/2017 is a holiday in SP and this in the table of individual holidays and 21/01/2017 is Saturday and 22/01/2017 is Sunday.
Can put the script to create your tables?
– Sorack