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
HakanIST
.
Toggle Highlighting
SQL
USE trwiki_p; SELECT CONCAT("#") AS number, user_id, CONCAT("[[user:",user_name,"|",user_name,"]]") AS user_name, SUM(CASE WHEN rev_timestamp BETWEEN 20160929000000 AND 20170429000000 THEN 1 ELSE 0 END) AS sixmonth_before_the_block,SUM(CASE WHEN rev_timestamp BETWEEN 20170429000000 AND 20170822235959 THEN 1 ELSE 0 END) AS after_the_block, COUNT(rev_id) AS user_editcount FROM user INNER JOIN revision ON revision.rev_user = user.user_id WHERE rev_timestamp <= 20170822235959 GROUP BY user_name ORDER BY sixmonth_before_the_block DESC LIMIT 50000;
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...