So I want to purge some data from the system which is older then 2 years.
I have a datetime field where I store.
I know I can do something like
SELECT * FROM `table` where date_field < (??? what goes here)
My problem is i think how do I calculate the date, or maybe I am confused