Selecting all records from one year ago till now
Solution 1:
select *
from orders
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
Solution 2:
SELECT * FROM order WHERE order_date >= curdate() - interval 1 year;
Solution 3:
To first of month a year ago
SELECT DATE_SUB(DATE_FORMAT(CURRENT_DATE,'%Y-%m-01'),INTERVAL 1 YEAR);