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

SQL

AخA
 
SELECT actor_name AS User,
    COUNT(log_action) AS Actions
    FROM logging L JOIN actor A ON A.actor_id = L.log_actor
    WHERE log_action="thank"
        AND log_timestamp >= DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 90 DAY),'%Y%m%d%H%i%s')
    GROUP BY actor_id
    ORDER BY COUNT(log_action) DESC
    LIMIT 10;
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...