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
SELECT au.actor_name, au.actor_id, (SELECT GROUP_CONCAT(ug2.ug_group) FROM user_groups ug2 WHERE ug2.ug_user = au.actor_user) AS 'groups', ri, li.* FROM actor_user au LEFT JOIN user_groups ug ON au.actor_user = ug.ug_user LEFT JOIN ( SELECT ru.rev_actor AS 'ri_actor', MAX(ru.rev_timestamp) AS 'ri_timestamp' FROM revision_userindex ru GROUP BY ru.rev_actor ) ri ON ri.ri_actor = au.actor_id LEFT JOIN ( SELECT lu.log_actor AS 'li_actor', MAX(lu.log_timestamp) AS 'li_timestamp' FROM logging_userindex lu GROUP BY lu.log_actor ) li ON li.li_actor = au.actor_id #LEFT JOIN revision_userindex ru #ON ru.rev_actor = au.actor_id WHERE ug.ug_group = 'sysop' GROUP BY au.actor_name LIMIT 2
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...