Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Gerges
.
Toggle Highlighting
SQL
SELECT (COUNT(DISTINCT CASE WHEN l1.log_title IN ( SELECT log_title FROM logging JOIN actor ON l1.log_actor = actor_id WHERE log_namespace = 0 AND log_type = 'create' AND actor_name REGEXP '^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$' ) THEN l1.log_title END) * 100.0 / total_deletions) AS deletion_percentage FROM ( SELECT DISTINCT log_title, log_actor FROM logging WHERE log_namespace = 0 AND log_type = 'delete' AND YEAR(log_timestamp) = 2024 AND MONTH(log_timestamp) = 5 ) AS l1, ( SELECT COUNT(DISTINCT log_title) AS total_deletions FROM logging WHERE log_namespace = 0 AND log_type = 'delete' AND YEAR(log_timestamp) = 2024 AND MONTH(log_timestamp) = 5 ) AS total;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...