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
لوقا
.
Toggle Highlighting
SQL
/* SELECT COUNT(rev_id) AS edit_count, DATE(rev_timestamp) AS day FROM revision WHERE rev_actor IN (SELECT actor_id FROM actor WHERE actor_name LIKE 'LokasBot') GROUP BY DATE(rev_timestamp); */ SELECT COUNT(rev_id) / COUNT(DISTINCT DATE(rev_timestamp)) AS avg_edit_per_day FROM revision WHERE rev_actor IN (SELECT actor_id FROM actor WHERE actor_name LIKE 'LokasBot') AND YEAR(rev_timestamp) = 2023; AND YEAR(rev_timestamp) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH) AND MONTH(rev_timestamp) = MONTH(CURRENT_DATE - INTERVAL 1 MONTH);
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...