Changeset 23737 for trunk/ippTools/share/disttool_toadvance.sql
- Timestamp:
- Apr 7, 2009, 4:19:58 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/share/disttool_toadvance.sql (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/disttool_toadvance.sql
r23717 r23737 4 4 stage_id, 5 5 outroot, 6 label 6 label, 7 clean 7 8 FROM 8 9 ( … … 13 14 stage_id, 14 15 outroot, 15 label 16 label, 17 clean 16 18 FROM distRun 17 19 JOIN rawImfile ON stage_id = rawImfile.exp_id … … 36 38 stage_id, 37 39 outroot, 38 label 40 label, 41 clean 39 42 FROM distRun 40 43 JOIN chipProcessedImfile ON stage_id = chipProcessedImfile.chip_id … … 53 56 AND SUM(distComponent.fault) = 0 54 57 UNION 58 -- camera stage 59 SELECT distRun.dist_id, 60 stage, 61 stage_id, 62 outroot, 63 distRun.label, 64 clean 65 FROM distRun 66 JOIN camRun ON stage_id = cam_id 67 JOIN chipRun USING(chip_id) 68 LEFT JOIN distComponent USING(dist_id) 69 WHERE 70 distRun.state = 'new' 71 AND distRun.fault = 0 72 AND distComponent.fault = 0 73 AND distRun.stage = 'camera' 74 -- AND ((chipRun.magicked AND camRun.state = 'full') OR distRun.no_magic) 75 -- AND (camRun.state = 'full' OR (distRun.clean and camRun.state = 'cleaned')) 76 UNION 77 -- fake stage 78 SELECT 79 distRun.dist_id, 80 stage, 81 stage_id, 82 outroot, 83 label, 84 clean 85 FROM distRun 86 JOIN fakeProcessedImfile ON stage_id = fakeProcessedImfile.fake_id 87 LEFT JOIN distComponent 88 ON distComponent.dist_id = distRun.dist_id 89 AND distComponent.component = fakeProcessedImfile.class_id 90 WHERE 91 distRun.state = 'new' 92 AND distRun.fault = 0 93 AND distRun.stage = 'fake' 94 GROUP BY 95 dist_id, 96 fakeProcessedImfile.fake_id 97 HAVING 98 COUNT(fakeProcessedImfile.class_id) = COUNT(distComponent.component) 99 AND SUM(distComponent.fault) = 0 100 UNION 55 101 -- warp stage 56 102 SELECT … … 59 105 stage_id, 60 106 outroot, 61 label 107 label, 108 clean 62 109 FROM distRun 63 110 JOIN warpSkyfile on stage_id = warp_id … … 84 131 stage_id, 85 132 outroot, 86 label 133 label, 134 clean 87 135 FROM distRun 88 136 JOIN diffSkyfile … … 109 157 stage_id, 110 158 outroot, 111 label 159 label, 160 clean 112 161 FROM distRun 113 162 JOIN stackSumSkyfile on stage_id = stack_id
Note:
See TracChangeset
for help on using the changeset viewer.
