Changeset 27840 for branches/simtest_nebulous_branches/ippTools/share/magictool_definebyquery_select.sql
- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/share/magictool_definebyquery_select.sql (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippTools/share/magictool_definebyquery_select.sql
r24174 r27840 1 1 -- Get a list of exposures on which magic may be performed 2 SELECT 3 exp_id,2 SELECT DISTINCT 3 chipRun.exp_id, 4 4 MAX(diffWarps.diff_id) AS diff_id, 5 5 -- The following trick pulls out the 'inverse' value for the maximum diff_id … … 15 15 WHERE diffInputSkyfile.warp1 IS NOT NULL 16 16 AND diffRun.exposure = 1 17 -- WHERE hook %s 17 AND diffRun.magicked = 0 18 -- diff WHERE hook %s 18 19 UNION 19 20 -- Backward diffs … … 27 28 AND diffRun.exposure = 1 28 29 AND diffRun.bothways = 1 29 -- WHERE hook %s 30 AND diffRun.magicked = 0 31 -- diff WHERE hook %s 30 32 ) AS diffWarps 31 33 JOIN warpRun USING(warp_id) … … 33 35 JOIN camRun USING(cam_id) 34 36 JOIN chipRun USING(chip_id) 35 LEFT JOIN magicRun USING(exp_id) 37 LEFT JOIN 38 (SELECT magic_id, exp_id, label 39 FROM magicRun 40 -- rerun hook %s 41 ) AS oldMagicRun 42 ON oldMagicRun.exp_id = chipRun.exp_id 36 43 -- WHERE hook %s 37 GROUP BY exp_id44 GROUP BY chipRun.exp_id
Note:
See TracChangeset
for help on using the changeset viewer.
