Forum Moderators: open
datecolumn of type
DATE? By the way, although you can get away with it you really shouldn't use reserved words for column names.
[dev.mysql.com...]
CURRENT_TIMESTAMP - INTERVAL 5 DAY.
SELECT
*
FROM transactions
WHERE
YEAR(`date`) = YEAR(CURRENT_DATE) AND
`date` <= CURRENT_TIMESTAMP - INTERVAL 5 DAY
;