IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2007, 3:56:40 PM (19 years ago)
Author:
jhoblitt
Message:

split magictool_toprocess.sql into two separate queries

File:
1 edited

Legend:

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

    r15271 r15272  
    33    -- convert magic_id into a boolean value (1 or 0)
    44    -- note that the type stays a 64 bit int
    5     magicNodeResult.magic_id IS TRUE as done
     5    magicNodeResult.magic_id IS TRUE as done,
     6    diffSkyfile.uri
     7FROM magicTree
     8JOIN magicRun
     9    USING(magic_id)
     10JOIN magicInputSkyfile
     11    USING(magic_id, node)
     12LEFT JOIN diffSkyfile
     13    using(diff_id)
     14LEFT JOIN magicNodeResult
     15    ON magicTree.magic_id = magicNodeResult.magic_id
     16    AND magicTree.node = magicNodeResult.node
     17WHERE
     18    magicRun.state = 'run'
     19UNION
     20SELECT
     21    magicTree.*,
     22    -- convert magic_id into a boolean value (1 or 0)
     23    -- note that the type stays a 64 bit int
     24    magicNodeResult.magic_id IS TRUE as done,
     25    magicNodeResult.uri
    626FROM magicTree
    727JOIN magicRun
Note: See TracChangeset for help on using the changeset viewer.