Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Find records that will expire in date range

enriquemansApr 10 2019 — edited Apr 11 2019

Hello

I have a oracle database 11g, Im Trying to build a query to pull all records that will expire between today and within 30 days.

This is my statement and is only pulling records that will expire in 30. How can I add a between Now and 30 days? Please help.

LV.DATETERM < to_char(current_date,'YYYYMMDD')+30

Name:DateTerm
Database Column:DateTerm
Database Table Name:LicenseVer
Value Type:INT
Required:False
Field Type:Standard
Comments
Post Details
Added on Apr 10 2019
9 comments
1,768 views