Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

selecting records that are 90 days from expiring

$
0
0

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






Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>