I have a DB with a numerical value for a given date.
I want to calculate the daily difference, i.e. if the value is 125 on March 20, and 150 on March 21. I want to calculate the difference (which is 25 in this example). And then I will create new table which has the 25 value as a new column on the row associated with March 21.
Also I will have to handle days only being the days entered in DB. As no data is inputted on weekends.
I need to loop thru the entire DB.
I am stuck on how to do this. Any help would be greatly appreciated.
I want to calculate the daily difference, i.e. if the value is 125 on March 20, and 150 on March 21. I want to calculate the difference (which is 25 in this example). And then I will create new table which has the 25 value as a new column on the row associated with March 21.
Also I will have to handle days only being the days entered in DB. As no data is inputted on weekends.
I need to loop thru the entire DB.
I am stuck on how to do this. Any help would be greatly appreciated.