SQL
x
SELECT * FROM
(
SELECT user_name,
(SELECT rev_timestamp
FROM revision_userindex
WHERE rev_actor = actor_id
ORDER BY rev_timestamp DESC
LIMIT 1) AS last_edit
FROM user_groups
JOIN user ON user_id = ug_user
LEFT JOIN actor_revision ON actor_user = user_id
WHERE ug_group = 'patroller'
) sq
WHERE COALESCE(last_edit, 0) <= '20210825';
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.