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
Matěj Suchánek
.
Toggle Highlighting
SQL
SELECT LEFT(rev_timestamp, 8) AS day, COUNT(rev_id), SUM(IF(actor_user IS NULL, 1, IF(DATE_ADD(rev_timestamp, INTERVAL -7 DAY) < log_timestamp, 1, 0))) AS is_new FROM revision JOIN page ON page_id = rev_page JOIN actor_revision ON actor_id = rev_actor LEFT JOIN user ON actor_user IS NOT NULL AND actor_user = user_id LEFT JOIN logging_logindex ON actor_user IS NOT NULL AND log_type = 'newusers' AND log_action = 'create' AND log_namespace = 2 AND log_title = REPLACE(actor_name, ' ', '_') AND log_timestamp < rev_timestamp WHERE page_namespace = 0 AND page_is_redirect = 0 AND rev_timestamp > '2020' GROUP BY LEFT(rev_timestamp, 8);
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...