Changeset 28091 for trunk/ippTools/share/staticskytool_definebyquery.sql
- Timestamp:
- May 25, 2010, 1:38:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/staticskytool_definebyquery.sql
r27546 r28091 1 SELECT 2 tess_id, 3 skycell_id, 4 COUNT(*) AS num, 5 COUNT(DISTINCT filter) AS num_filter 6 FROM stackRun 7 JOIN stackSumSkyfile USING(stack_id) 8 WHERE stackRun.state = 'full' 9 AND stackSumSkyfile.fault = 0 10 AND stackSumSkyfile.quality = 0 11 -- WHERE hook %s 12 GROUP BY 13 tess_id, 14 skycell_id 1 SELECT 2 tess_id, 3 skycell_id, 4 num_filter 5 FROM ( 6 SELECT 7 tess_id, 8 skycell_id, 9 COUNT(DISTINCT filter) AS num_filter 10 FROM stackRun 11 JOIN stackSumSkyfile USING(stack_id) 12 WHERE stackRun.state = 'full' 13 AND stackSumSkyfile.fault = 0 14 AND stackSumSkyfile.quality = 0 15 -- WHERE hook 1 %s 16 -- restrict by stackSumSkyfile.good_frac, stackRun.skycell_id, stackRun.label 17 GROUP BY 18 tess_id, 19 skycell_id 20 ) AS TMP 21 WHERE num_filter == %d 22
Note:
See TracChangeset
for help on using the changeset viewer.
