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

SQL

AخA
 
SELECT LEFT(log_timestamp,6) AS 'year/month', CASE log_namespace WHEN 0 THEN 'main' ELSE 'draft' END AS 'namespace', COUNT(*)
FROM logging
LEFT JOIN page ON page_id = log_page
WHERE log_type = 'delete'
  AND log_action = 'delete'
  AND log_timestamp >= '202107'
  AND log_namespace IN (0, 118)
GROUP BY LEFT(log_timestamp,6), log_namespace
ORDER BY log_namespace, log_timestamp ASC;
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...