IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2009, 6:16:07 PM (17 years ago)
Author:
bills
Message:

change distTarget.obs_mode to distTarget.label add filter require that
label, filter, stage, cleaned be unique

File:
1 edited

Legend:

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

    r24008 r24725  
    44    -- run tag in the form 'stack.$skycell_id.$stack_id'
    55    CONCAT_WS('.', 'stack', stackRun.skycell_id, convert(stackRun.stack_id, CHAR)) as run_tag,
    6     rawExp.obs_mode,
     6    distTarget.label,
    77    distTarget.target_id,
    88    distTarget.clean
    99FROM stackRun
    10 JOIN stackInputSkyfile using(stack_id)
    11 JOIN warpRun USING(warp_id)
    12 JOIN fakeRun USING(fake_id)
    13 JOIN camRun USING(cam_id)
    14 JOIN chipRun USING(chip_id)
    15 JOIN rawExp USING(exp_id)
    16 JOIN distTarget ON distTarget.stage = 'stack' AND rawExp.obs_mode = distTarget.obs_mode
     10JOIN distTarget ON distTarget.stage = 'stack'
     11    AND stackRun.label = distTarget.label
     12    AND stackRun.filter = distTarget.filter
    1713JOIN rcInterest USING(target_id)
    1814LEFT JOIN distRun ON distRun.stage = 'stack' AND (distRun.stage_id = stack_id)
Note: See TracChangeset for help on using the changeset viewer.