r94944 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94943‎ | r94944 | r94945 >
Date:20:58, 18 August 2011
Author:giovanni
Status:deferred
Tags:
Comment:
fixed sort order
Modified paths:
  • /trunk/tools/wsor/contribution_inequality/contrib.sql (modified) (history)

Diff [purge]

Index: trunk/tools/wsor/contribution_inequality/contrib.sql
@@ -1,9 +1,9 @@
22 -- user ranking by contribution per namespace per year for main, talk,
33 -- wikipedia, wikipedia talk
4 -describe
 4+
55 select namespace, year, user_id, sum(edits) as total_contributions
66 from halfak.giovanni
7 -where namespace in (0,1,4,5)
 7+where namespace in (0,1,4,5) and user_id > 0
88 group by user_id, namespace, year
9 -order by namespace asc, year asc, total_contributions desc;
 9+-- having total_contributions >= 1000
 10+order by namespace, year, total_contributions;

Status & tagging log