IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2008, 5:57:36 PM (18 years ago)
Author:
eugene
Message:

do not join against tess_id

File:
1 edited

Legend:

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

    r19092 r19258  
    77FROM warpRun
    88JOIN warpSkyfile
    9     USING(warp_id, tess_id)
     9    USING(warp_id)
    1010JOIN fakeRun
    11     USING(fake_id, tess_id)
     11    USING(fake_id)
    1212JOIN camRun
    13     USING(cam_id, tess_id)
     13    USING(cam_id)
    1414JOIN chipRun
    15     USING(chip_id, tess_id)
     15    USING(chip_id)
    1616JOIN rawExp
    17     USING(exp_id, tess_id)
     17    USING(exp_id)
    1818LEFT JOIN stackInputSkyfile
    1919    ON warpSkyfile.warp_id = stackInputSkyfile.warp_id
    2020LEFT JOIN stackRun
    21     ON stackRun.tess_id = warpSkyfile.tess_id
    22     AND stackRun.skycell_id = warpSkyfile.skycell_id
     21    ON stackRun.skycell_id = warpSkyfile.skycell_id
    2322    AND stackRun.stack_id = stackInputSkyfile.stack_id
    2423WHERE
     
    2625    AND warpSkyfile.ignored = 0
    2726GROUP BY
    28     warpSkyfile.skycell_id, warpSkyfile.tess_id, stackRun.stack_id
     27    warpSkyfile.skycell_id, stackRun.stack_id
    2928HAVING
    3029    num_avail > num_extant
Note: See TracChangeset for help on using the changeset viewer.