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
Zero0000
.
Count all edits by reverts and reverted
Toggle Highlighting
SQL
SELECT COUNT(*) AS total_edits, SUM(CASE WHEN ctd.ctd_name = 'mw-reverted' THEN 1 ELSE 0 END) AS mw_reverted_edits, SUM(CASE WHEN ctd.ctd_name in ('mw-undo','mw-rollback') THEN 1 ELSE 0 END) AS reverts, FROM revision_userindex JOIN actor_revision ON revision_userindex.rev_actor = actor_revision.actor_id LEFT JOIN change_tag ON change_tag.ct_rev_id = revision_userindex.rev_id LEFT JOIN change_tag_def AS ctd ON change_tag.ct_tag_id = ctd.ctd_id WHERE actor_revision.actor_name = 'Zero0000' AND date(revision_userindex.rev_timestamp) BETWEEN '2023-01-01' AND '2023-01-31';
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...