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

SQL

x
 
SELECT 
    YEAR(STR_TO_DATE(r.rev_timestamp, '%Y%m%d%H%i%s')) AS edit_year, 
    COUNT(DISTINCT a.actor_user) AS active_editors  -- Count unique editors
FROM revision r
JOIN actor a ON r.rev_actor = a.actor_id  -- Link revisions to users
WHERE STR_TO_DATE(r.rev_timestamp, '%Y%m%d%H%i%s') >= DATE_SUB(NOW(), INTERVAL 1 YEAR)  -- Rolling YoY filter
GROUP BY edit_year
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...