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

SQL

AخA
 
select
    actor_name,
    count(log_action) as total,
    sum(log_action like "%-i") as new,
    sum(log_action = "approve") as other,
    sum(log_action like "unapprove%") as unapproved
from logging
    inner join actor on actor_id = log_actor
where
    log_type = "review" and
    log_namespace = 0 and
    log_timestamp > date_sub(now(), interval 7 day) and
    log_action not like "%-a"
group by
    log_actor
order by
    total desc
limit 50;
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...