Changeset 25816 for trunk/ippTools/share/flatcorr_pendingprocess.sql
- Timestamp:
- Oct 8, 2009, 5:09:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/share/flatcorr_pendingprocess.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/flatcorr_pendingprocess.sql
r20397 r25816 10 10 reduction, 11 11 region, 12 c hip_count,13 cam_count12 cam_count, 13 add_count 14 14 FROM 15 15 (SELECT 16 16 flatcorrRun.*, 17 flatcorrC hipLink.corr_id as chip_corr_id,18 count(flatcorrC hipLink.chip_id) as chip_count17 flatcorrCamLink.corr_id as cam_corr_id, 18 count(flatcorrCamLink.cam_id) as cam_count 19 19 FROM flatcorrRun 20 JOIN flatcorrC hipLink21 ON flatcorrChipLink.corr_id = flatcorrRun.corr_id22 WHERE flatcorrC hipLink.include = 120 JOIN flatcorrCamLink 21 USING (corr_id) 22 WHERE flatcorrCamLink.include = 1 23 23 GROUP BY 24 flatcorrC hipLink.corr_id) AS t124 flatcorrCamLink.corr_id) AS t1 25 25 LEFT JOIN 26 26 (SELECT 27 flatcorr CamLink.corr_id as cam_corr_id,28 count(flatcorr CamLink.cam_id) as cam_count29 FROM flatcorr CamLink30 JOIN camRun31 ON flatcorrCamLink.cam_id = camRun.cam_id32 WHERE camRun.state = 'full'33 AND flatcorr CamLink.include = 127 flatcorrAddstarLink.corr_id as add_corr_id, 28 count(flatcorrAddstarLink.add_id) as add_count 29 FROM flatcorrAddstarLink 30 JOIN addRun 31 USING (add_id) 32 WHERE addRun.state = 'full' 33 AND flatcorrAddstarLink.include = 1 34 34 GROUP BY 35 flatcorr CamLink.corr_id) AS t236 ON t1.c hip_corr_id = t2.cam_corr_id37 WHERE c hip_count = cam_count35 flatcorrAddstarLink.corr_id) AS t2 36 ON t1.cam_corr_id = t2.add_corr_id 37 WHERE cam_count = add_count 38 38 AND state = 'new'
Note:
See TracChangeset
for help on using the changeset viewer.
