Fork of Editors with more than 5 edits in last 30 days (arwiki) by علاء
This query is marked as a draft This query has been published by حبيشان.

SQL

x
 
USE arwiki_p;
select actor_name, page_namespace, count(rev_id) as c
from revision 
JOIN actor ON actor_id = rev_actor
JOIN page ON rev_page = page_id
WHERE page_namespace = 828, page_name not like '%شرح'
-- where  -- rev_timestamp > DATE_SUB(NOW(), INTERVAL 1 MONTH)
--    AND actor_name IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'editor')
--    AND actor_name NOT IN (SELECT user_name FROM user_groups INNER JOIN user ON user_id = ug_user WHERE ug_group = 'bot')
-- group by rev_actor
-- having count(rev_actor) > 11
-- DER BY count(rev_actor) desc
group by actor_name,page_namespace
order by 3 desc
limit 10
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...