IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2009, 5:18:20 PM (17 years ago)
Author:
Paul Price
Message:

Need to use trick to get corresponding value for MAX() field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ipp_serial_mops_warps.pl

    r24267 r24268  
    7878SELECT
    7979    rawExp.exp_id,
    80     camProcessedExp.zpt_obs,
    81     MAX(warpRun.warp_id) AS warp_id
     80    MAX(warpRun.warp_id) AS warp_id,
     81    -- The following trick pulls out the 'zpt_obs' value for the maximum warp_id
     82    CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(camProcessedExp.zpt_obs ORDER BY warpRun.warp_id), ',', 1), UNSIGNED) AS zpt_obs
    8283FROM warpRun
    8384JOIN fakeRun USING(fake_id)
Note: See TracChangeset for help on using the changeset viewer.