IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2010, 11:26:37 AM (16 years ago)
Author:
bills
Message:

if data_group is not supplied use the diffRun's data_group

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/magictool_definebyquery_select.sql

    r28039 r28765  
    44    MAX(diffWarps.diff_id) AS diff_id,
    55    -- The following trick pulls out the 'inverse' value for the maximum diff_id
    6     CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse
     6    CONVERT(SUBSTRING_INDEX(GROUP_CONCAT(diffWarps.inverse ORDER BY diffWarps.diff_id), ',', 1), UNSIGNED) AS inverse,
     7    diff_data_group
    78FROM (
    89    -- Forward diffs
     
    1011        diffRun.diff_id,
    1112        warp1 AS warp_id,
    12         0 AS inverse
     13        0 AS inverse,
     14        diffRun.data_group AS diff_data_group
    1315    FROM diffRun
    1416    JOIN diffInputSkyfile USING(diff_id)
     
    2224        diffRun.diff_id,
    2325        warp2 AS warp_id,
    24         1 AS inverse
     26        1 AS inverse,
     27        diffRun.data_group AS diff_data_group
    2528    FROM diffRun
    2629    JOIN diffInputSkyfile USING(diff_id)
Note: See TracChangeset for help on using the changeset viewer.