IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17573


Ignore:
Timestamp:
May 7, 2008, 5:28:40 PM (18 years ago)
Author:
jhoblitt
Message:

optimization

File:
1 edited

Legend:

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

    r14023 r17573  
    1 SELECT DISTINCT * FROM
    2     (SELECT
    3         newExp.exp_id,
    4         newExp.tmp_exp_name,
    5         newExp.tmp_camera,
    6         newExp.tmp_telescope,
    7         newExp.workdir,
    8         newImfile.tmp_class_id,
    9         newImfile.uri
    10     FROM newImfile
    11     JOIN newExp
    12         USING(exp_id)
    13     LEFT JOIN rawImfile
    14         ON newExp.exp_id = rawImfile.exp_id
    15         AND newImfile.tmp_class_id = rawImfile.tmp_class_id
    16     WHERE
    17         newExp.state = 'run'
    18         AND rawImfile.tmp_class_id IS NULL) as Foo
     1SELECT DISTINCT
     2    newExp.exp_id,
     3    newExp.tmp_exp_name,
     4    newExp.tmp_camera,
     5    newExp.tmp_telescope,
     6    newExp.workdir,
     7    newImfile.tmp_class_id,
     8    newImfile.uri
     9FROM newImfile
     10JOIN newExp
     11    USING(exp_id)
     12LEFT JOIN rawImfile
     13    ON newExp.exp_id = rawImfile.exp_id
     14    AND newImfile.tmp_class_id = rawImfile.tmp_class_id
     15WHERE
     16    newExp.state = 'run'
     17    AND rawImfile.tmp_class_id IS NULL
Note: See TracChangeset for help on using the changeset viewer.