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
Lofhi
.
Toggle Highlighting
SQL
-- Total number of article revisions per day /*SELECT revision_date, revision_count FROM ( SELECT DATE(rev.rev_timestamp) AS revision_date, COUNT(*) AS revision_count FROM revision AS rev INNER JOIN page AS p ON rev.rev_page = p.page_id WHERE rev.rev_timestamp BETWEEN ('20220101000000' AND '20221231235959') AND p.page_namespace = 0 GROUP BY revision_date ) AS subquery GROUP BY revision_date;*/ -- Annual average SELECT AVG(revision_count) AS overall_average_revisions FROM ( SELECT COUNT(*) AS revision_count FROM revision AS rev INNER JOIN page AS p ON rev.rev_page = p.page_id WHERE rev.rev_timestamp BETWEEN ('20220101000000' AND '20221231235959') AND p.page_namespace = 0 GROUP BY DATE(rev.rev_timestamp) ) AS subquery;
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...