I need to write a where clause that selects all records between Monday and Friday of a week number in a year. CURDATE() is not working as I'm not working with the current date, just the week number as reference.
What I'm trying to achieve is something like the following:
WHERE appointment.appointment_date >= DATE(Monday of YEARWEEK(30)) and appointment.appointment_date <= DATE(Friday of YEARWEEK(30))