r87563 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87562‎ | r87563 | r87564 >
Date:19:09, 6 May 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
joined test table
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_totals.sql (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/sql/report_campaign_totals.sql
@@ -3,13 +3,17 @@
44
55 select
66
7 -utm_campaign,
8 -sum(not isnull(contribution_tracking.contribution_id)) as donations
 7+faulkner.test.test_name,
 8+drupal.contribution_tracking.utm_campaign,
 9+sum(not isnull(contribution_tracking.contribution_id)) as donations,
 10+min(receive_date) as earliest_timestamp
911
10 -from drupal.contribution_tracking left join civicrm.civicrm_contribution ON (drupal.contribution_tracking.contribution_id = civicrm.civicrm_contribution.id)
 12+from
 13+drupal.contribution_tracking left join civicrm.civicrm_contribution ON (drupal.contribution_tracking.contribution_id = civicrm.civicrm_contribution.id)
 14+left join faulkner.test on faulkner.test.utm_campaign = drupal.contribution_tracking.utm_campaign
1115
1216 where receive_date >= %s and receive_date < %s
1317
14 -group by 1
15 -order by 2 desc;
 18+group by 2
 19+order by 3 desc;
1620

Status & tagging log