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 enwikinews_p; SELECT * FROM user JOIN (SELECT ug1.ug_user, CASE WHEN EXISTS ( SELECT 1 FROM user_groups ug2 WHERE ug2.ug_user = ug1.ug_user AND ug_group = 'sysop' ) AND WHEN EXISTS ( SELECT 1 FROM user_groups ug2 WHERE ug2.ug_user = ug1.ug_user AND ug_group = 'bureaucrat' ) THEN 'Current crat administrator' ELSE 'sysop' END AS 'group' FROM user_groups ug1 ) AS ug ON ug.ug_user = user_id
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...