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/difftool_definebyquery.sql

    r18673 r19258  
    2424        diffTemplates.stack_id AS current_stack_id
    2525    FROM warpSkyfile
    26     JOIN warpRun USING(warp_id, tess_id)
    27     JOIN fakeRun USING(fake_id, tess_id)
    28     JOIN camRun USING(cam_id, tess_id)
    29     JOIN chipRun USING(chip_id, tess_id)
    30     JOIN rawExp USING(exp_id, tess_id)
     26    JOIN warpRun USING(warp_id)
     27    JOIN fakeRun USING(fake_id)
     28    JOIN camRun USING(cam_id)
     29    JOIN chipRun USING(chip_id)
     30    JOIN rawExp USING(exp_id)
    3131    -- Check if it has an associated diff
    3232    LEFT JOIN diffInputSkyfile AS diffInputs
    3333        ON diffInputs.warp_id = warpSkyfile.warp_id
    3434        AND diffInputs.skycell_id = warpSkyfile.skycell_id
    35         AND diffInputs.tess_id = warpSkyfile.tess_id
    3635        AND diffInputs.template = 0 -- only join input files
    3736    -- Get the stack_id currently used as a template, if any
     
    5655    GROUP BY
    5756        skycell_id,
    58         tess_id,
    5957        filter
    60     ) AS stacksForDiff USING(skycell_id, tess_id, filter)
     58    ) AS stacksForDiff USING(skycell_id, filter)
Note: See TracChangeset for help on using the changeset viewer.