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
DannyS712
.
Toggle Highlighting
SQL
use mediawikiwiki_p; SELECT COUNT(rc_id) AS 'edits', MAX(rc.rc_timestamp) AS 'last edit', actor.actor_name FROM actor JOIN recentchanges_userindex AS rc ON actor_id = rc_actor WHERE actor_user IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bureaucrat' ) GROUP BY actor_name ORDER BY COUNT(*) DESC; use mediawikiwiki_p; SELECT a.actor_name, e.*, l.* FROM actor JOIN ( SELECT COUNT(rc_id) AS 'edits', MAX(rc.rc_timestamp) AS 'last edit', rc_actor FROM recentchanges_userindex rc WHERE rc_type = 0 GROUP BY rc_actor ) AS e ON e.rc_actor = a.actor_id WHERE actor_user IN (SELECT ug_user FROM user_groups WHERE ug_group = 'bureaucrat' ) GROUP BY actor_name 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
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...