SQL
x
WITH editcounts(ec_log10, ec_name) AS
(
SELECT FLOOR(LOG10(COUNT(*))), actor_name
FROM revision
JOIN actor_revision ON actor_id = rev_actor
WHERE rev_timestamp LIKE '2024%'
AND actor_user IS NOT NULL
GROUP BY rev_actor
)
SELECT RPAD('1', ec_log10 + 1, '0') AS cohort, COUNT(*), ec_name AS example_user
FROM editcounts
GROUP BY ec_log10;
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.