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

SQL

AخA
 
SELECT DISTINCT user_name AS inactive_renamer
FROM user_groups
INNER JOIN user ON user_id = ug_user
WHERE ug_group = "global-renamer"
AND ug_user NOT IN (
SELECT DISTINCT log_user as ug_user
FROM logging
WHERE log_type = "gblrename"
AND log_timestamp > DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -365 DAY), '%Y%m%d%H%i%s')
)
;
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...