r90627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90626‎ | r90627 | r90628 >
Date:23:05, 22 June 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Returns all lps and banners for a campaign
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_banners.sql (modified) (history)
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_lps.sql (added) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_banners.sql
@@ -7,7 +7,7 @@
88
99 from drupal.contribution_tracking left join civicrm.civicrm_contribution ON (drupal.contribution_tracking.contribution_id = civicrm.civicrm_contribution.id)
1010
11 -where receive_date >= %s and receive_date < %s and utm_campaign REGEXP '%s'
 11+where ts >= '%s' and ts < '%s' and utm_campaign REGEXP '%s'
1212
1313 group by 1;
1414
Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_lps.sql
@@ -0,0 +1,13 @@
 2+
 3+
 4+
 5+select
 6+
 7+SUBSTRING_index(substring_index(utm_source, '.', 2),'.',-1) as lp
 8+
 9+from drupal.contribution_tracking left join civicrm.civicrm_contribution ON (drupal.contribution_tracking.contribution_id = civicrm.civicrm_contribution.id)
 10+
 11+where ts >= '%s' and ts < '%s' and utm_campaign REGEXP '%s'
 12+
 13+group by 1;
 14+

Status & tagging log