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
Martin Urbanec
.
Toggle Highlighting
SQL
use cswiki_p; SELECT rev_actor, SUM(ABS(byte_change)) AS absolute_sum, SUM(CASE WHEN (byte_change>0) THEN byte_change ELSE 0 END ) AS positive_sum, SUM(CASE WHEN (byte_change<0) THEN ABS(byte_change) ELSE 0 END ) AS negative_sum FROM ( SELECT revision.rev_actor, cast(revision.rev_len as signed)-cast(coalesce(old_revision.rev_len, 0) as signed) AS byte_change FROM revision JOIN actor_revision ON actor_id=revision.rev_actor LEFT JOIN revision AS old_revision ON old_revision.rev_id=revision.rev_parent_id WHERE actor_name IN ("Martin Urbanec") AND revision.rev_timestamp > "20181219160000" AND revision.rev_timestamp < "20181219183000" ) AS anon_1 GROUP BY rev_actor;
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...