MySQL Rank Comparison
问题 What I am trying to do is equivalent to a "music charts" table. I have a table of video plays, and i want to rank the videos that have been played in the last 24 hours, and compare them to the rank they were the 24 hours before that. So the output should be the VideoID, The current Rank of the ID, and the rank the day previous of the ID The table consists of: PlayID (the specific id to the play table) IP (IP address of the user who played the video) VIDEOID (ID of the specific video, what