SQL
x
USE zhwiki_p;
SELECT log_user_text, COUNT(*) AS `count`, COUNT(*) / 1000 * 100 AS `%`
FROM (
SELECT *
FROM logging
WHERE log_type = "thanks"
ORDER BY log_timestamp DESC
LIMIT 1000
) tmp
GROUP BY log_user_text
ORDER BY `count` DESC;
SELECT log_title, COUNT(*) AS `count`, COUNT(*) / 1000 * 100 AS `%`
FROM (
SELECT *
FROM logging
WHERE log_type = "thanks"
ORDER BY log_timestamp DESC
LIMIT 1000
) tmp
GROUP BY log_title
ORDER BY `count` 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.