IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 12, 2008, 12:29:11 PM (18 years ago)
Author:
bills
Message:

Move getting the camera to a sub query. Using joins resulted in
duplicate entries in the output (one for each input to the stack)

File:
1 edited

Legend:

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

    r19276 r20072  
    22    stackSumSkyfile.*,
    33    stackRun.state,
    4     rawExp.camera
     4    (SELECT rawExp.camera FROM
     5        stackInputSkyfile
     6        JOIN warpRun USING(warp_id)
     7        JOIN fakeRun ON warpRun.fake_id = fakeRun.fake_id
     8        JOIN camRun ON camRun.cam_id = fakeRun.cam_id
     9        JOIN chipRun ON camRun.chip_id  = chipRun.chip_id
     10        JOIN rawExp ON chipRun.exp_id  = rawExp.exp_id
     11        where stack_id = stackRun.stack_id limit 1
     12    ) as camera
    513FROM stackRun
    614JOIN stackSumSkyfile
    7     USING(stack_id)
    8 JOIN stackInputSkyfile
    9     USING(stack_id)
    10 JOIN warpRun
    11     USING(warp_id)
    12 JOIN fakeRun
    13     ON warpRun.fake_id = fakeRun.fake_id
    14 JOIN camRun
    15     ON camRun.cam_id   = fakeRun.cam_id
    16 JOIN chipRun
    17     ON camRun.chip_id  = chipRun.chip_id
    18 JOIN rawExp
    19     ON chipRun.exp_id  = rawExp.exp_id
     15USING(stack_id)
Note: See TracChangeset for help on using the changeset viewer.