我正试图写一个 s子,但我发现一些困难。 想要的是:
Lets suppose we have a table where we store the times that a video have been watched, per day. So for example:
- day: 14/11/2011, video_id: 3539, timeswatched: 125
- and: 15/11/2011, video_id: 3539, timeswatched: 162
(so the table stores video_id,day,timeswatched)
What i want is to make a billboard/chart type which show the percentage change of the timeswatched of the 8 top viewed (for today) videos between the dates: today and yesterday. (note that a video may have not been watched at all today or yesterday - should this be a problem or not?)
因此,结果应当像这样的:录像:3539人+23%或-44%(或)今天更多的/无观察(我们需要知道如何找到23%)
感谢!