- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/share/laptool_definerun.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippTools/share/laptool_definerun.sql
r31604 r33415 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)
Note:
See TracChangeset
for help on using the changeset viewer.
