Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Average daily number of edits per year on plwiki
by
Msz2001
This query is marked as a draft
This query has been published
by
Mustafa MVC
.
This query excludes edits made by accounts that are or were bots.
Toggle Highlighting
SQL
SELECT SUBSTRING(day, 1, 4) AS `Rok`, AVG(daily) AS `Ĺrednia dzienna liczba edycji` FROM ( SELECT SUBSTRING(rev_timestamp, 1, 8) AS day, COUNT(*) as daily FROM revision JOIN actor ON rev_actor = actor_id LEFT JOIN user ON user_id = actor_user WHERE 'bot' NOT IN ( SELECT ug_group FROM user_groups WHERE ug_user = user_id UNION SELECT ufg_group FROM user_former_groups WHERE ufg_user = user_id) GROUP BY day) d GROUP BY `Rok` ORDER BY 1 DESC;
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...