IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2007, 5:46:11 PM (19 years ago)
Author:
jhoblitt
Message:

remove newExp.imfils

File:
1 edited

Legend:

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

    r14024 r14037  
    11SELECT DISTINCT * FROM
    22    (SELECT
    3        newExp.*
     3       newExp.*,
     4       newImfile.tmp_class_id,
     5       rawImfile.tmp_class_id as raw_tmp_class_id
    46    FROM newExp
    57    JOIN newImfile
     
    79    LEFT JOIN rawExp
    810       USING(exp_id)
     11    LEFT JOIN rawImfile
     12        ON newImfile.exp_id = rawImfile.exp_id
     13        AND newImfile.tmp_class_id = rawImfile.tmp_class_id
    914    WHERE
    1015        newExp.state = 'run'
    1116        AND rawExp.exp_id IS NULL
    12         AND newExp.imfiles =
    13         (SELECT COUNT(exp_id) FROM rawImfile
    14             WHERE rawImfile.exp_id = newExp.exp_id)) as Foo
     17    GROUP BY
     18        newExp.exp_id
     19    HAVING
     20        COUNT(newImfile.tmp_class_id) = COUNT(rawImfile.tmp_class_id)
     21    ) as Foo
Note: See TracChangeset for help on using the changeset viewer.