Tables:
videoID (vidID, vidName, vidURL) etc.
viewCount (vidID, views, timestamp)
The main goal of this database is to calculate the slope between the most recent view and the previous one.
Lets say I automatically store the view data in the database once everyday.
This means all the view data for all videos is in one big table called viewCount. The views are linked to the associated video with the vidID. Would this set up be an acceptable solution? Mainly how can I retrieve those two values needed to calculate slope for each video from this current database set up?