Changeset 32422 for trunk/ippTools/share
- Timestamp:
- Sep 21, 2011, 11:11:16 AM (15 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 1 added
- 3 edited
-
Makefile.am (modified) (1 diff)
-
laptool_WSdiff_check.sql (added)
-
laptool_definerun.sql (modified) (2 diffs)
-
laptool_pendingexp.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r32283 r32422 424 424 laptool_pendingexp.sql \ 425 425 laptool_pendingrun.sql \ 426 laptool_WSdiff_check.sql \ 426 427 laptool_stacks.sql 427 428 -
trunk/ippTools/share/laptool_definerun.sql
r31604 r32422 1 SELECT DISTINCT want.exp_id, have.chip_id, false as private, true as active, false as pairwise 1 SELECT DISTINCT 2 want.exp_id, 3 have.chip_id, 4 COALESCE(have.private,false) as private, 5 true as active, 6 false as pairwise 2 7 FROM 3 8 (SELECT exp_id FROM rawExp … … 8 13 ) AS want 9 14 LEFT JOIN 10 (SELECT exp_id,MAX(chip_id) AS chip_id, chipRun.state 15 (SELECT 16 exp_id, 17 MAX(chip_id) AS chip_id, 18 chipRun.state, 19 lapExp.private 11 20 FROM lapExp JOIN chipRun USING(exp_id,chip_id) 12 where private IS FALSE13 ANDchip_id IS NOT NULL21 JOIN lapRun USING(lap_id) 22 where chip_id IS NOT NULL 14 23 AND 15 ( 24 -- This is the restriction to only draw from the current lapSequence 25 @CHIPWHERE@ 26 -- ( 16 27 -- (active = TRUE) OR 17 (chipRun.state = 'full') OR18 (chipRun.state = 'new')28 -- (chipRun.state = 'full') OR 29 -- (chipRun.state = 'new') 19 30 -- when we can do updates, put that here. 20 )31 -- ) 21 32 GROUP BY exp_id 22 33 ) AS have USING(exp_id) -
trunk/ippTools/share/laptool_pendingexp.sql
r31435 r32422 3 3 lapRun.dist_group, lapRun.registered, lapRun.fault, lapRun.quick_sass_id, lapRun.final_sass_id, 4 4 exp_id, chip_id, pair_id, private, pairwise, active, lapExp.data_state, 5 dateobs, object, comment 5 dateobs, object, comment, 6 chipRun.state AS chip_state 6 7 FROM lapRun JOIN lapExp USING(lap_id) 7 8 JOIN rawExp USING(exp_id,filter) 9 LEFT JOIN chipRun USING(exp_id,chip_id) 8 10 WHERE active IS TRUE AND lapRun.fault = 0 9 11 -- lap_id restriction here.
Note:
See TracChangeset
for help on using the changeset viewer.
