The MySQL table is simple:
id | name | create_time
Every time the user makes an operation, it inserts one record into this table, like
1 | "do ABC" | 2011-12-05
2 | "do BCD" | 2011-12-05
I want to get the top 50 operations from this table during the last 7 days. How can I write the SQL?
1 Answer