Changeset 26039 for trunk/ippTools/share/magictool_definebyquery_select.sql
- Timestamp:
- Nov 4, 2009, 7:14:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/magictool_definebyquery_select.sql
r26033 r26039 1 1 -- Get a list of exposures on which magic may be performed 2 2 SELECT DISTINCT 3 exp_id,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 … … 33 33 JOIN camRun USING(cam_id) 34 34 JOIN chipRun USING(chip_id) 35 LEFT JOIN magicRun USING(exp_id) 35 LEFT JOIN 36 (SELECT magic_id, exp_id, label 37 FROM magicRun 38 -- rerun hook %s 39 ) AS oldMagicRun 40 ON oldMagicRun.exp_id = chipRun.exp_id 36 41 -- WHERE hook %s 37 GROUP BY exp_id42 GROUP BY chipRun.exp_id
Note:
See TracChangeset
for help on using the changeset viewer.
