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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increment by one month 2

Status
Not open for further replies.

eHanSolo

Technical User
May 24, 2004
260
GB
hi there,

I have managed to obtain the latest date in a list of dates by using the following:

SELECT date FROM mydata.data WHERE fund = "whatIwant" order by date desc limit 1


thing is, i actually want the latest date plus one month and then return this value. Any ideas?

Thanks.
 
Try
Code:
SELECT DATE_ADD(date, INTERVAL 1 MONTH) FROM etc

Andrew
Hampshire, UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top