Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Edycje wizualne w porównaniu do wszystkich w 2022
by
Msz2001
This query is marked as a draft
This query has been published
by
Msz2001
.
Porównanie liczby edycji edytorem wizualnym do wszystkich, wykonanych przez osoby, które aktualnie nie mają uprawnień redaktora.
Toggle Highlighting
SQL
set @ve := 1; -- Id znacznika "VisualEditor" -- Uwzględniane są wszystkie edycje wykonane w 2023 roku (UTC+1) set @starttime := '20230731230000'; set @endtime := '20240731230000'; SELECT ( SELECT COUNT(*) FROM revision JOIN change_tag ON rev_id = ct_rev_id WHERE ct_tag_id = @ve AND rev_timestamp >= @starttime AND rev_timestamp < @endtime ) - ( SELECT COUNT(*) FROM revision JOIN change_tag ON rev_id = ct_rev_id JOIN actor ON rev_actor = actor_id JOIN user_groups ON actor_user = ug_user AND ug_group = 'editor' WHERE ct_tag_id = @ve AND rev_timestamp >= @starttime AND rev_timestamp < @endtime ) AS "VisualEditor", ( SELECT COUNT(*) FROM revision WHERE rev_timestamp >= @starttime AND rev_timestamp < @endtime ) - ( SELECT COUNT(*) FROM revision JOIN actor ON rev_actor = actor_id JOIN user_groups ON actor_user = ug_user AND ug_group IN('bot', 'editor') WHERE rev_timestamp >= @starttime AND rev_timestamp < @endtime ) AS "Wszystkie edycje";
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...