SQL
AخA
WITH users_with_edits(uwe_id) AS
(
SELECT user_id
FROM user
WHERE user_editcount >= 1
)
SELECT COUNT(*)
FROM users_with_edits
WHERE EXISTS
(SELECT 1
FROM revision_userindex
JOIN actor_revision ON actor_id = rev_actor
WHERE rev_timestamp LIKE '2023%'
AND actor_user = uwe_id
LIMIT 1)
OR EXISTS
(SELECT 1
FROM archive_userindex
JOIN actor_archive ON actor_id = ar_actor
WHERE ar_timestamp LIKE '2023%'
AND actor_user = uwe_id
LIMIT 1);
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.