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_diff.sql

    r24194 r24725  
    33    diffRun.diff_id AS stage_id,
    44    rawExp.exp_name as run_tag,
    5     rawExp.obs_mode,
     5    distTarget.label,
    66    distTarget.target_id,
    77    distTarget.clean
     
    1313JOIN chipRun USING(chip_id)
    1414JOIN rawExp USING(exp_id)
    15 JOIN distTarget ON distTarget.stage = 'diff' AND rawExp.obs_mode = distTarget.obs_mode
     15JOIN distTarget ON distTarget.stage = 'diff'
     16    AND diffRun.label = distTarget.label
     17    AND distTarget.filter = rawExp.filter
    1618JOIN rcInterest USING(target_id)
    1719LEFT JOIN distRun ON distRun.stage = 'diff' AND (distRun.stage_id = diff_id)
Note: See TracChangeset for help on using the changeset viewer.