Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
autopatrolled users who haven't edited in 5 years
by
Vexations
This query is marked as a draft
This query has been published
by
Joe Roe
.
Autopatrolled users who haven't edited in 5 years, ordered by date of last edit.
Toggle Highlighting
SQL
SELECT rev_user_text, MAX(rev_timestamp) AS last_edit FROM revision_userindex WHERE rev_user_text IN ( SELECT user_name FROM user_groups JOIN user ON ug_user = user_id WHERE ug_group = 'autoreviewer' ); #SELECT user_name, user_editcount, MAX(rev_timestamp) AS last_edit, ug_group #FROM page, revision, user, user_groups #WHERE page_id = rev_page #AND ug_user = user_id #AND rev_user = user_id #AND ug_group = 'autoreviewer' #AND last_edit < (NOW() - INTERVAL 5 YEAR) #GROUP BY user_name #FROM actor #JOIN user_groups ON ug_user = actor.actor_user #JOIN user ON user_id = actor.actor_user #WHERE ug_group = 'autoreviewer' #AND actor_name NOT IN ( # users who have edited in the last five years # SELECT rev_actor # FROM revision # WHERE rev_timestamp > (NOW() - INTERVAL 5 YEAR) #) #AND actor_user IS NOT NULL #ORDER BY user_editcount
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...