algorithm Posted February 22, 2010 Share Posted February 22, 2010 Suppose you have a table with two fields, Date and Value. I want to use php to calculate Year over Year percent change? How do I efficiently get the previous year's value as well as start exactly one year after my initial date (since you can't calculate %ch if there are no previous values)? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.