I have a table with the following rows :
- code (int)
- vaccine (varchar)
- dt_volution (datetime)
I need a query to return all vaccines that will expire within 10 days, counting today's date.
I tried something like this that I saw in this answer SOen using INTERVAL
:
SELECT * FROM tblVacinas WHERE dt_vencimento >= DATE_ADD(CURDATE(), INTERVAL 10 DAY);
Note: did not work.
How would the query be to return values at a given interval counting from the current date?