This query is marked as a draft This query has been published by Count Count.

SQL

x
 
            SELECT
                user_id,
                user_name,
                actor_id,
                GROUP_CONCAT(ug_group SEPARATOR ",") AS user_groups
            FROM
                user
                INNER JOIN user_groups ON user_id = ug_user AND ug_group IN ('sysop', 'bot')
                INNER JOIN actor WHERE actor_user = user_id 
            GROUP 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.
All SQL code is licensed under CC0 License.

Checking query status...