Changes between Version 25 and Version 26 of Onyx to CiviCRM


Ignore:
Timestamp:
01/07/14 08:57:26 (11 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Onyx to CiviCRM

    v25 v26  
    8484    , pa.telephone
    8585    , pa.workphone
     86    , mra.most_recent_action
    8687FROM participant p
    8788JOIN interview i ON i.participant_id = p.id
     
    117118    GROUP BY pa.participant_id
    118119    ) pa ON pa.participant_id = p.id
     120JOIN (
     121    SELECT
     122          interview_id
     123        , MAX(date_time) most_recent_action
     124    FROM action
     125    GROUP BY interview_id
     126    ) mra ON mra.interview_id = i.interview_id
    119127;
    120128