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
KCVelaga
.
Toggle Highlighting
SQL
WITH base AS ( SELECT CURDATE() AS date, CURDATE() - INTERVAL 15 DAY AS rc_date, rc_id, CASE WHEN rc_namespace = 0 THEN TRUE ELSE FALSE END AS is_ns0, rc_new, rc_this_oldid, CASE WHEN rc_patrolled = 0 THEN 'unpatrolled' WHEN rc_patrolled = 1 THEN 'patrolled' WHEN rc_patrolled = 2 THEN 'autopatrolled' END AS patrol_status FROM recentchanges rc WHERE rc_type IN (0, 1, 6) AND NOT rc_bot AND DATE(rc_timestamp) = CURDATE() - INTERVAL 15 DAY ) SELECT CAST(date AS DATE), rc_date, is_ns0, rc_new AS is_page_creation, patrol_status, COUNT(DISTINCT rc_id) AS revision_count FROM base GROUP BY is_ns0, rc_new, patrol_status
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...