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
The Polish
.
Toggle Highlighting
SQL
USE plwiki_p; SELECT rev_user_text, SUM(byte_change) AS net_sum, SUM(ABS(byte_change)) AS abs_sum, SUM(byte_change * (byte_change > 0)) AS positive_only_sum, SUM(byte_change * (byte_change < 0)) AS negative_only_sum FROM ( SELECT c.rev_user_text, CAST(c.rev_len AS SIGNED) - CAST(IFNULL(p.rev_len, 0) AS SIGNED) AS byte_change FROM revision_userindex c INNER JOIN page ON page_id = c.rev_page LEFT JOIN revision_userindex p ON p.rev_id = c.rev_parent_id WHERE page_namespace IN (0) AND c.rev_timestamp <= '20151231235959' ) AS byte_changes GROUP BY rev_user_text;
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...