I have a customers table and I would like to filter all the customers whose birthday is between a given date range, let's say January 1st and March 15th. I've been trying to use:
(DAY(birthday) >= 01 AND MONTH(birthday) >= 01) AND (DAY(birthday) <= 15 AND MONTH(birthday) <= 03)
but this will return only the ones whose birthday is between day 1 and 15. 1 to 15 of January, 1 to 15 of February and 1 to 15 of March. Isn't there a way to do this:
birthday BETWEEN '%-01-01' AND '%-03-15'
Thanks in advance