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

SQL

AخA
 
SELECT COUNT(*) AS total, COUNT(*)/365 AS 'avg per day'
FROM logging
WHERE log_type = 'rights'
  AND log_action = 'autopromote'
  AND log_params LIKE '%newgroups%extendedconfirmed%'
  AND log_params NOT LIKE '%oldgroups%extendedconfirmed%newgroups%'
  AND log_timestamp >= DATE_FORMAT(DATE_ADD(NOW(), INTERVAL -365 DAY), "%Y%m%d%H%i%s");
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...