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
Peter Bowman
.
Toggle Highlighting
SQL
select user_name, group_concat(distinct ug_group separator ", ") as current_groups, group_concat(distinct ufg_group separator ", ") as former_groups from user left join user_groups as ug1 on ug_user = user_id left join user_former_groups as ufg1 on ufg_user = user_id where ug_user in (select ug_user from user_groups as ug2 where ug_group = "bot") or ufg_user in (select ufg_user from user_former_groups as ufg2 where ufg_group = "bot") group by user_id order by user_name
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...