0
I have 2 mysql tables that represent days unavailable for scheduling:
Table Holidays: id, day (date), name
Table special_days: id, day (date), will_work(Boolean)
In the querie I need to select the unavailable days that are the Holidays, the special_days in which will_work. So far so good, but if there is a special_day where the date is equal to some Holiday and will_work is true I need to remove this date from the list.
So far I’ve only managed:
SELECT day FROM holidays
UNION SELECT day FROM special_days WHERE will_work = FALSE;
But I could not remove the Holidays where there is some special_day with will_work is true and day equal;
Post your code where you are struggling, so it is difficult to help you
– Luciano Azevedo