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
Mike.Khoroshun
.
Toggle Highlighting
SQL
-- Get the number of edits by unregistered users with and without the 'visualeditor' tag in 2023 SELECT COUNT(*) AS edit_count, CASE WHEN actor.actor_user IS NOT NULL AND change_tag_def.ctd_name = 'visualeditor' THEN 'Visual Editor' ELSE 'Other' END AS edit_type FROM revision LEFT JOIN change_tag ON revision.rev_id = change_tag.ct_rev_id LEFT JOIN change_tag_def ON change_tag.ct_tag_id = change_tag_def.ctd_id JOIN page ON revision.rev_page = page.page_id LEFT JOIN actor ON revision.rev_actor = actor.actor_id WHERE page.page_namespace = 0 -- Specify the namespace as needed AND actor.actor_user IS NOT NULL -- Unregistered users have actor_user null AND EXTRACT(YEAR FROM revision.rev_timestamp) = 2023 -- Limit to 2023 GROUP BY edit_type;
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...