r79071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79070‎ | r79071 | r79072 >
Date:17:08, 27 December 2010
Author:rfaulk
Status:deferred
Tags:
Comment:
fixed error in calculating 'EN' amounts.
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_total_amounts.sql (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_total_amounts.sql
@@ -8,7 +8,7 @@
99 sum(if(utm_campaign NOT REGEXP 'EM' and utm_campaign NOT REGEXP 'RE',converted_amount ,0)) as banner_amt,
1010 sum(if(utm_source REGEXP '_US' and utm_campaign NOT REGEXP 'EM' and utm_campaign NOT REGEXP 'RE',converted_amount,0)) as US_amt,
1111 sum(if(utm_source REGEXP '_EN' and utm_campaign NOT REGEXP 'EM' and utm_campaign NOT REGEXP 'RE',converted_amount,0)) as EN_amt,
12 -sum(if(utm_campaign NOT REGEXP'_EN' and utm_source NOT REGEXP '_US' and utm_campaign NOT REGEXP'EM' and utm_campaign NOT REGEXP 'RE',converted_amount,0)) as OT_amt,
 12+sum(if(utm_source NOT REGEXP'_EN' and utm_source NOT REGEXP '_US' and utm_campaign NOT REGEXP'EM' and utm_campaign NOT REGEXP 'RE',converted_amount,0)) as OT_amt,
1313 sum(if(utm_campaign REGEXP 'EM' or utm_campaign REGEXP 'RE' , converted_amount ,0)) as email_amt,
1414 sum(if(utm_source REGEXP '.rpp' ,1 ,0))*0.5*8*10 as recurring_guess,
1515

Status & tagging log