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
WikiBayer
.
Toggle Highlighting
SQL
SELECT u.user_name, COUNT(DISTINCT ug.ug_group) + COUNT(DISTINCT ur.ur_right) AS num_rights, GROUP_CONCAT(DISTINCT ug.ug_group SEPARATOR ', ') AS groups, GROUP_CONCAT(DISTINCT ur.ur_right SEPARATOR ', ') AS rights FROM user AS u LEFT JOIN user_groups AS ug ON u.user_id = ug.ug_user LEFT JOIN user_rights AS ur ON u.user_id = ur.ur_user GROUP BY u.user_id ORDER BY num_rights DESC LIMIT 90;
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...