i'm aggregating facebook "like" counts for urls over time. each hour, i check the "like" count and insert it into a timestamped row. how can i get the difference in total between the new row and the previous hour's row?
eg,
- insert total=5 for id=1 at 2pm
- insert total=12, diff_since_last=7 for id=1 at 3pm
thanks!