IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 10:15:41 AM (19 years ago)
Author:
jhoblitt
Message:

merge backtrack branch

File:
1 edited

Legend:

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

    r12259 r14018  
    11SELECT
    2     chipPendingExp.*,
    3     chipPendingImfile.class_id,
    4     chipPendingImfile.uri,
     2    chipRun.*,
     3    chipInputImfile.exp_tag,
     4    chipInputImfile.class_id,
     5    rawImfile.uri,
    56    rawExp.exp_id,
    67    rawExp.camera,
    78    rawExp.telescope,
    89    rawExp.filelevel
    9 FROM chipPendingImfile
    10 JOIN chipPendingExp
     10FROM chipRun
     11JOIN chipInputImfile
    1112    USING(chip_id)
     13LEFT JOIN chipProcessedImfile
     14    ON chipInputImfile.chip_id = chipProcessedImfile.chip_id
     15    AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag
     16    AND chipInputImfile.class_id = chipProcessedImfile.class_id
     17JOIN rawImfile
     18    ON chipInputImfile.exp_tag = rawImfile.exp_tag
     19    AND chipInputImfile.class_id = rawImfile.class_id
    1220JOIN rawExp
    13     ON chipPendingExp.exp_tag = rawExp.exp_tag
     21    ON rawImfile.exp_tag = rawExp.exp_tag
    1422LEFT JOIN chipMask
    15     ON chipPendingExp.label = chipMask.label
     23    ON chipRun.label = chipMask.label
    1624WHERE
    17     chipMask.label IS NULL
     25    chipRun.state = 'run'
     26    AND chipProcessedImfile.chip_id IS NULL
     27    AND chipProcessedImfile.exp_tag IS NULL
     28    AND chipProcessedImfile.class_id IS NULL
     29    AND chipMask.label IS NULL
Note: See TracChangeset for help on using the changeset viewer.