This query is marked as a draft This query has been published by Xiplus.

SQL

AخA
 
SET @cnt = 1000;
USE zhwiki_p;
SELECT log_user_text, COUNT(*) AS `count`, `count` / cnt
FROM (
    SELECT *
    FROM logging
    WHERE log_type = "thanks"
    ORDER BY log_timestamp DESC
    LIMIT cnt
) tmp
GROUP BY log_user
ORDER BY `count` DESC
#ORDER BY log_timestamp DESC
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...