- Timestamp:
- Jul 5, 2007, 10:15:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/chiptool_completely_processed_exp.sql
r13403 r14018 1 -- select * from chipPendingExp 2 -- where exp_tag is not in chipProcessedExp 3 -- where exp_tag is not in chipPendingImfile 4 -- where the number of entries in chipProccessedImfile matches the .imfiles 5 -- entry in rawExp 1 -- the output of this query must match the format of chipRun row 6 2 SELECT DISTINCT 7 chipPendingExp.*, 8 rawExp.imfiles, 9 chipProcessedImfile.class_id 10 FROM chipPendingExp 11 JOIN rawExp 12 ON chipPendingExp.exp_tag = rawExp.exp_tag 13 LEFT JOIN chipProcessedExp 14 ON chipPendingExp.chip_id = chipProcessedExp.chip_id 15 LEFT JOIN chipPendingImfile 16 ON chipPendingExp.chip_id = chipPendingImfile.chip_id 17 LEFT JOIN chipProcessedImfile 18 ON chipPendingExp.chip_id = chipProcessedImfile.chip_id 19 WHERE 20 chipProcessedExp.chip_id IS NULL 21 AND chipPendingImfile.chip_id IS NULL 22 AND chipProcessedImfile.chip_id IS NOT NULL 23 AND chipProcessedImfile.fault = 0 24 GROUP BY 25 chipPendingExp.chip_id 26 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id) 3 chip_id, 4 state, 5 workdir, 6 workdir_state, 7 label, 8 reduction, 9 expgroup, 10 dvodb 11 FROM 12 (SELECT 13 chipRun.*, 14 rawExp.imfiles, 15 chipProcessedImfile.class_id 16 FROM chipRun 17 JOIN chipInputImfile 18 USING(chip_id) 19 JOIN rawExp 20 ON chipInputImfile.exp_tag = rawExp.exp_tag 21 JOIN chipProcessedImfile 22 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 23 AND chipInputImfile.exp_tag = chipProcessedImfile.exp_tag 24 AND chipInputImfile.class_id = chipProcessedImfile.class_id 25 WHERE 26 chipRun.state = 'run' 27 AND chipProcessedImfile.fault = 0 28 GROUP BY 29 chipInputImfile.chip_id, 30 chipInputImfile.exp_tag 31 HAVING rawExp.imfiles = COUNT(chipProcessedImfile.class_id)) as Foo
Note:
See TracChangeset
for help on using the changeset viewer.
