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

SQL

AخA
 
SELECT actor_name, count(*) FROM logging 
    JOIN actor 
    WHERE actor_id = log_actor
    AND log_type = 'patrol' 
    AND log_timestamp < 20220601000000 AND log_timestamp > 20220501000000
    GROUP by log_actor;
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...