This query is marked as a draft This query has been published by Alex NB IT.

SQL

AخA
 
SELECT user_name
FROM user 
JOIN user_groups ON user_id = ug_user
GROUP BY user_id
HAVING GROUP_CONCAT(ug_group) LIKE 'bot'
ORDER BY 1 ASC
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...