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
use jawiki_p; select month, case is_registered when 0 then edit_count else null end as edit_count_by_anonymous, case is_bot when 0 then edit_count else null end as edit_count_by_registered, case is_bot when 1 then edit_count else null end as edit_count_by_bot from ( select left(rev_timestamp, 6) as month, if(rev_user = 0, 0, 1) as is_registered, if(ifnull(ufg_group, ug_group)="bot", 1,0) as is_bot, count(*) as edit_count from revision_userindex left outer join user_former_groups on rev_user = ufg_user and ufg_group = "bot" left outer join user_groups on rev_user = ug_user and ug_group = "bot" group by left(rev_timestamp, 6), if(rev_user = 0, 0, 1), ifnull(ufg_group, ug_group) ) as a
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...