Dear all,
I got 5 records. If today is 2018-12-04.
How can I select records which are expiring in 90 days?
No, end_date
1, 2018-11-15
2, 2019-12-31
3, 2019-02-13
4, 2019-03-04
5, 2019-05-02
Below is my SQL statement. how can I make it to show record no 1-4?
SELECT * FROM customer_agreement WHERE end_date <= DATE(NOW() + INTERVAL 90 DAY) + INTERVAL 0 SECOND ORDER BY end_date DESC