Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where clause to bring back future

Status
Not open for further replies.

RBE

Programmer
May 25, 2000
72
US
Please excuse me if I get too detailed in this.&nbsp;&nbsp;I am using DB2 and I am trying to query our sales date field (formated as date) and bring back results of all sales that happened in the past, for the next three months.&nbsp;&nbsp;Short story is we are trying to automate our subscription renewal process and need to send out letters for renewals at least three months in advance.&nbsp;&nbsp;The fields have the purchase date, mm/dd/yyyy that can range anywhere from 1995 to present.&nbsp;&nbsp;I need a query that will pull all customers who's renewals are due within the next three months.&nbsp;&nbsp;If anyone can help that would be greatly appreicated.&nbsp;&nbsp;<br><br>RBE
 
I think DATEADD works in DB2.&nbsp;&nbsp;Have you checked that out? <p>Malcolm Wynden<br><a href=mailto:wynden@island.dot.net>wynden@island.dot.net</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top