Changeset 29515 for branches/eam_branches/ipp-20100823/ippTools/share/magicdstool_todestreak_diff.sql
- Timestamp:
- Oct 21, 2010, 2:45:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/ippTools/share/magicdstool_todestreak_diff.sql
r27945 r29515 7 7 rawExp.camera, 8 8 magicMask.uri AS streaks_uri, 9 magicMask.path_base AS streaks_path_base, 9 10 CAST(NULL AS CHAR(255)) AS inv_streaks_uri, 11 CAST(NULL AS CHAR(255)) AS inv_streaks_path_base, 10 12 stage, 11 13 magicRun.diff_id AS stage_id, … … 20 22 recoveryroot, 21 23 re_place, 22 remove 24 remove, 25 IFNULL(Label.priority, 10000) AS priority 23 26 FROM rawExp 24 27 JOIN magicRun USING (exp_id) … … 33 36 ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 34 37 AND magicDSFile.component = diffSkyfile.skycell_id 38 LEFT JOIN Label ON magicDSRun.label = Label.label 35 39 WHERE 36 40 magicDSRun.state = 'new' … … 40 44 AND diffSkyfile.quality = 0 41 45 AND magicDSFile.component IS NULL 46 AND (Label.active OR Label.active IS NULL) 42 47 -- bothways diffSkyfiles 43 48 UNION … … 49 54 rawExp.camera, 50 55 magicMask.uri AS streaks_uri, 56 magicMask.path_base AS streaks_path_base, 51 57 (SELECT uri from magicMask where magic_id = inv_magic_id) AS inv_streaks_uri, 58 (SELECT path_base from magicMask where magic_id = inv_magic_id) AS inv_streaks_path_base, 52 59 stage, 53 60 magicRun.diff_id AS stage_id, … … 62 69 recoveryroot, 63 70 re_place, 64 remove 71 remove, 72 IFNULL(Label.priority, 10000) AS priority 65 73 FROM rawExp 66 74 JOIN magicRun USING (exp_id) … … 75 83 ON magicDSRun.magic_ds_id = magicDSFile.magic_ds_id 76 84 AND magicDSFile.component = diffSkyfile.skycell_id 85 LEFT JOIN Label ON magicDSRun.label = Label.label 77 86 WHERE 78 87 magicDSRun.state = 'new' … … 82 91 AND diffSkyfile.quality = 0 83 92 AND magicDSFile.component IS NULL 93 AND (Label.active OR Label.active IS NULL) 84 94 ) AS magicDSRun 85 95 -- we need the following so this query is compatible with the other stages
Note:
See TracChangeset
for help on using the changeset viewer.
