how would i create a “last 24 hour top” table by pageviews if i have the following tables.
movie: id, title
pageview: id, movie, vieweddate
i need the third table like this
top: id, movie, moviecount24
so i would be able to make such query:
select * from top24 order by viewcount24 desc limit 30
i need to create top table using ONE mysql query.
1 Answer