I have a table called log
that logs recently used items the columns are as follows:
u_id
(a unique number)item_id
(an item id number)access_time
(a server timestamp)
I would like to create a query that finds the trend of the most accessed items over a period of time. For example what are the top 10 items that were accessed the most in the last 60 minutes (server time).
How can I create such a query?