mysql data one day ago code example Example: mysql where one year ago select * from orders where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);