IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20738


Ignore:
Timestamp:
Nov 13, 2008, 3:53:23 PM (17 years ago)
Author:
Paul Price
Message:

Wasn't setting warp_id in magicBestDiffs correctly (it wasn't
necessarily the warp_id associated with the best diff_id), so
jettisoned it. If we want it, we can join against diffInputSkyfile.

File:
1 edited

Legend:

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

    r20734 r20738  
    33SELECT
    44    rawExp.exp_id,
    5     warpSkyfile.skycell_id,
    6     warpSkyfile.tess_id,
    7     warpRun.warp_id AS warp_id,
     5    diffInputSkyfile.skycell_id,
     6    diffInputSkyfile.tess_id,
    87    MAX(diffSkyfile.diff_id) AS diff_id
    98FROM rawExp
     
    1817    AND diffInputSkyfile.skycell_id = warpSkyfile.skycell_id
    1918    AND diffInputSkyfile.template = 0 -- selecting inputs only
     19JOIN diffRun USING(diff_id)
    2020JOIN diffSkyfile USING(diff_id)
    2121WHERE
    2222    diffSkyfile.fault = 0
    23 ---- WHERE hook %s
     23-- WHERE hook %s
    2424GROUP BY
    2525    exp_id,
    26     warpSkyfile.skycell_id
     26    diffInputSkyfile.skycell_id,
     27    diffInputSkyfile.tess_id
     28;
Note: See TracChangeset for help on using the changeset viewer.