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
Gluo88
.
Originally, Fork of zhwiki RFX Eligible Voters by SCP-2000 a fix in part 3: all_revision.rev_timestamp < @PRIOR_120_VOTE_TIME (formerly: all_revision.rev_timestamp < @VOTE_TIME) 解任投票联署提出或上任投票开始120天前,编辑至少500次
Toggle Highlighting
SQL
/* debugging I was able to complete the above SQL query as seen in https://quarry.wmcloud.org/history/84807/911494/884555. However, when I run the same query again at https://quarry.wmcloud.org/query/84807. I got the error "OperationalError('table resultsets already exists')". How should I fix the error? I guess that resultsets may be a temporary table that was produced in running my previous SQL query. -- Check the current read-only status SHOW GLOBAL VARIABLES LIKE 'read_only'; -- Disable read-only mode SET GLOBAL read_only = OFF; -- Perform your operations DROP TABLE IF EXISTS resultsets; -- Re-enable read-only mode if needed SET GLOBAL read_only = ON; */ -- USE zhwiki_p; -- Check the current read-only status SHOW GLOBAL VARIABLES LIKE 'read_only'; -- SHOW TABLES FROM zhwiki_p; use tewiki_p; select concat(substr(rev_timestamp,5,2),"-",substr(rev_timestamp,1,4)) as month_year,actor_name as user,count(actor_name) as No_of_articles, sum(rev_len) as Bytes from change_tag,change_tag_def,revision,page,actor where ct_tag_id = ctd_id and rev_id=ct_rev_id and page_id=rev_page and page_namespace=0 and page_is_redirect=0 and actor_id=rev_actor and ctd_name = "contenttranslation" and rev_parent_id=0 -- and substr(rev_timestamp,1,4)="2022" group by month_year,actor_name order by rev_timestamp desc
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...