Fork of Article creations by month by Cryptic
This query is marked as a draft This query has been published by Cryptic.

SQL

AخA
 
SELECT LEFT(creation.log_timestamp,6),
       COUNT(creation.log_id) AS `creations`,
       SUM(EXISTS(SELECT 1
                  FROM logging_logindex AS deletion
                  WHERE deletion.log_page = creation.log_page
                    AND deletion.log_action = 'delete'
                    AND deletion.log_type = 'delete')) AS `deletions`
FROM logging AS creation
LEFT JOIN page ON page_id = log_page
LEFT JOIN page_props ON pp_page = page_id AND pp_propname = 'disambiguation'
WHERE creation.log_type = 'create'
  AND creation.log_timestamp >= '20180627' -- First entry with log_type='create' was timestamp 20180627231006
  AND creation.log_namespace = 0
  AND COALESCE(page_is_redirect, 0) = 0
  AND pp_page IS NULL
GROUP BY LEFT(creation.log_timestamp,6)
ORDER BY creation.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...