Forum Moderators: coopster
Thanks for any help.
select * from tables where date_checked BETWEEN DATE_SUB(CURRENT_DATE(),INTERVAL n DAY) AND CURRENT_DATE();
I would think you could use something along the lines of this for your WHERE clause:
WHERE YEAR(CURDATE()) < YEAR(CURDATE())-5
(not tested)