- Timestamp:
- May 3, 2011, 7:28:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20110406/ippTools/share/laptool_inactiveexp.sql
r31409 r31429 1 1 SELECT DISTINCT 2 D.*,diffRun.state AS diff_state, CONVERT(sum(others.active),SIGNED) AS is_in_use FROM (2 D.*,diffRun.state AS diff_state,coalesce(CONVERT(sum(others.active),SIGNED),0) AS is_in_use FROM ( 3 3 SELECT DISTINCT 4 4 W.*,IFNULL(diff1.diff_id,diff2.diff_id) AS diff_id FROM ( … … 27 27 WHERE lapExp.active = FALSE 28 28 AND @WHERE@ 29 AND (warpSkyfile.quality IS NULL OR 30 (warpSkyfile.quality != 8007 -- known cases where quality != 0, but everything's fine. 31 AND warpSkyfile.quality != 3006 -- known cases where quality != 0, but everything's fine. 32 )) 29 33 GROUP BY lap_id,exp_id 30 34 ) AS W … … 34 38 ) AS D 35 39 LEFT JOIN diffRun USING(diff_id) 36 JOIN lapExp AS others ON (D.chip_id = others.chip_id AND D.lap_id != others.lap_id)40 LEFT JOIN lapExp AS others ON (D.chip_id = others.chip_id AND D.lap_id != others.lap_id) 37 41 GROUP BY lap_id,exp_id
Note:
See TracChangeset
for help on using the changeset viewer.
