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/regtool_find_unprocessed_exp.sql

    r12086 r14018  
    1 SELECT
    2    newExp.*
    3 FROM newExp
    4 LEFT JOIN newImfile
    5    USING(exp_tag)
    6 LEFT JOIN rawExp
    7    USING(exp_tag)
     1SELECT DISTINCT * FROM
     2    (SELECT
     3       newExp.*
     4    FROM newExp
     5    JOIN newImfile
     6       USING(exp_tag)
     7    LEFT JOIN rawExp
     8       USING(exp_tag)
     9    WHERE
     10        newExp.state = 'run'
     11        AND rawExp.exp_tag IS NULL
     12        AND newExp.imfiles =
     13        (SELECT COUNT(exp_tag) FROM rawImfile
     14            WHERE rawImfile.exp_tag = newExp.exp_tag)) as Foo
    815WHERE
    9     newExp.exp_tag IS NOT NULL
    10     AND newImfile.exp_tag IS NULL
    11     AND rawExp.exp_tag IS NULL
    12     AND newExp.imfiles =
    13     (SELECT COUNT(exp_tag) FROM rawImfile
    14         WHERE rawImfile.exp_tag = newExp.exp_tag)
    15     AND newExp.exp_tag = '%s'
     16    exp_tag = '%s'
Note: See TracChangeset for help on using the changeset viewer.