Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
ASammour
.
Toggle Highlighting
SQL
use arwiki_p; SELECT DISTINCT usrtmp.user_name, usrtmp.user_editcount, usrtmp.rev_timestamp AS first_edit, rv1.rev_timestamp AS last_edit, usrtmp.groups FROM revision AS rv1 JOIN (SELECT user_id, user_name, user_editcount, rev_timestamp, GROUP_CONCAT(ug_group) AS groups FROM user LEFT JOIN user_groups ON ug_user = user_id JOIN revision ON rev_user = user_id WHERE user_editcount > 2500 AND user_id NOT IN (SELECT ug_user FROM user_groups WHERE ug_group IN ("bot", "sysop", "reviewer")) AND rev_timestamp = (SELECT MIN(rev_timestamp) FROM revision WHERE rev_user = user_id) AND rev_timestamp < DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 YEAR),'%Y%m%d%H%i%s') GROUP BY user_id) AS usrtmp ON usrtmp.user_id = rv1.rev_user WHERE rv1.rev_timestamp = (SELECT MAX(rev_timestamp) FROM revision WHERE rev_user = usrtmp.user_id) AND rv1.rev_timestamp > DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 MONTH),'%Y%m%d%H%i%s') ORDER BY usrtmp.user_name ASC;
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...