Changes between Version 5 and Version 6 of OpenVPN2011-2012


Ignore:
Timestamp:
12/26/12 16:04:10 (11 years ago)
Author:
Eric Crist
Comment:

correct SQL query

Legend:

Unmodified
Added
Removed
Modified
  • OpenVPN2011-2012

    v5 v6  
    7171Statistics for last to years were gathered with this MySQL query:
    7272
    73  * select username, count(*) as total from phpbb_posts left join phpbb_users on phpbb_users.user_id = phpbb_posts.poster_id where post_time > 1293377267 group by username order by total desc limit 10;
     73 * select username, count(*) as total from phpbb_posts left join phpbb_users on phpbb_users.user_id = phpbb_posts.poster_id where from_unixtime(post_time) >
     74                   date_sub(curdate(), interval 2 year) group by username order by total desc limit 10;
    7475
    7576All-time statistics can be gathered with this query: