IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18793


Ignore:
Timestamp:
Jul 30, 2008, 2:32:56 PM (18 years ago)
Author:
Paul Price
Message:

Missing constraint on LEFT JOIN with fakeProcessedImfile was leaving out lots of GPC chips.

File:
1 edited

Legend:

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

    r18125 r18793  
    1 SELECT DISTINCT * FROM
    2      -- the subselect is so where criteria can be specified without knowing
    3      -- which table the field came from
    4     (SELECT
     1SELECT DISTINCT * FROM (
     2    -- the subselect is so where criteria can be specified without knowing
     3    -- which table the field came from
     4    SELECT
    55        fakeRun.*,
    66        chipProcessedImfile.exp_id,
     
    2929        rawExp.filelevel
    3030    FROM fakeRun
    31     JOIN camRun
    32         USING(cam_id)
    33     JOIN camProcessedExp
    34         USING(cam_id)
    35     JOIN chipRun
    36         USING(chip_id)
    37     JOIN chipProcessedImfile
    38         USING(chip_id)
     31    JOIN camRun USING(cam_id)
     32    JOIN camProcessedExp USING(cam_id)
     33    JOIN chipRun USING(chip_id)
     34    JOIN chipProcessedImfile USING(chip_id)
    3935    JOIN rawExp
    4036        ON chipProcessedImfile.exp_id = rawExp.exp_id
    4137    LEFT JOIN fakeProcessedImfile
    4238        ON fakeRun.fake_id = fakeProcessedImfile.fake_id
     39        AND chipProcessedImfile.class_id = fakeProcessedImfile.class_id
    4340    LEFT JOIN fakeMask
    4441        ON fakeRun.label = fakeMask.label
     
    4744        AND fakeProcessedImfile.class_id IS NULL
    4845        AND fakeMask.label IS NULL
    49     ) as foo
     46    ) as fakePendingImfile
Note: See TracChangeset for help on using the changeset viewer.