I have a field in the table named registro_data_instalacao
of type date , I need to display the records with registro_data_instalacao
where the date is greater than 3 days and less than 30 days, below, but to no avail.
SELECT *
FROM registro
WHERE registro_data_instalacao >= (CURRENT_DATE() + INTERVAL 3 DAY)
AND registro_data_instalacao <= (CURRENT_DATE() + INTERVAL 30 DAY)