Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Active users in last 30 days in fawp + their editing tendencies
by
Huji
This query is marked as a draft
This query has been published
by
Yethrosh
.
Toggle Highlighting
SQL
SELECT actor_name, SUM(freq) TotalEdits, FORMAT(100 * SUM( CASE WHEN page_namespace = 0 THEN freq ELSE 0 END ) / SUM(freq), 1) ContentEdits, FORMAT(100 * SUM( CASE WHEN page_namespace IN (8, 10) THEN freq ELSE 0 END ) / SUM(freq), 1) TechnicalEdits, FORMAT(100 * SUM( CASE WHEN page_namespace IN (4, 5) THEN freq ELSE 0 END ) / SUM(freq), 1) ProjectDiscussionEdits, FORMAT(100 * SUM( CASE WHEN page_namespace IN (1, 3, 7, 9, 11, 13) THEN freq ELSE 0 END ) / SUM(freq), 1) OtherDiscussionEdits, FORMAT(100 * SUM( CASE WHEN page_namespace NOT IN (0, 1, 3, 4, 5, 7, 8, 9, 10, 11, 13) THEN freq ELSE 0 END ) / SUM(freq), 1) AllOtherEdits FROM ( SELECT actor_name, page_namespace, COUNT(*) freq FROM revision JOIN actor ON actor_id = rev_actor JOIN page ON rev_page = page_id WHERE rev_actor IN ( SELECT rev_actor FROM revision LEFT JOIN user_groups ON rev_actor = ug_user AND ug_group = 'bot' WHERE rev_timestamp > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 DAY), '%Y%m%d000000') AND rev_actor <> 0 AND rev_actor NOT IN ('CommonsDelinker', 'پیغامبر خوش آمدید') AND ug_user IS NULL ) GROUP BY rev_actor, page_namespace ) last30days WHERE actor_name NOT LIKE "%bot" OR "%Bot" GROUP BY actor_name ORDER BY SUM(freq) DESC
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...