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

SQL

AخA
 
SELECT user.user_name, user.user_id, user.user_registration, user_groups.* FROM user
LEFT JOIN user_groups ON user_id = ug_user
WHERE ug_group IN ('accountcreator', 'eventcoordinator', 'massmessage-sender', 'templateeditor', 'abusefilter', 'abusefilter-helper')
AND ug_user NOT IN (SELECT ug_user FROM user_groups WHERE ug_group IN ('sysop', 'bot'))
ORDER BY user_registration DESC
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...