Changeset 31687 for trunk/ippTools/share
- Timestamp:
- Jun 22, 2011, 4:12:33 PM (15 years ago)
- Location:
- trunk/ippTools/share
- Files:
-
- 1 added
- 2 edited
-
Makefile.am (modified) (1 diff)
-
staticskytool_definebyquery_select.sql (modified) (4 diffs)
-
staticskytool_definebyquery_select_by_dg.sql (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r31435 r31687 371 371 stacktool_addsummary.sql \ 372 372 staticskytool_definebyquery_select.sql \ 373 staticskytool_definebyquery_select_by_dg.sql \ 373 374 staticskytool_definebyquery_inputs.sql \ 374 375 staticskytool_export_run.sql \ -
trunk/ippTools/share/staticskytool_definebyquery_select.sql
r31681 r31687 1 SELECT 1 SELECT DISTINCT 2 2 tess_id, 3 3 skycell_id, 4 data_group,5 label,6 4 num_filter 7 5 FROM ( … … 9 7 tess_id, 10 8 skycell_id, 11 label,12 data_group,13 9 COUNT(DISTINCT filter) AS num_filter 14 10 FROM stackRun … … 18 14 AND stackSumSkyfile.quality = 0 19 15 -- WHERE hook 1 %s 20 -- restrict by s tackSumSkyfile.good_frac, stackRun.skycell_id, stackRun.label16 -- restrict by selected filters, stackSumSkyfile.good_frac, stackRun.skycell_id, stackRun.label 21 17 GROUP BY 22 18 tess_id, 23 skycell_id, 24 data_group 25 ) AS TMP 19 skycell_id 20 ) AS Stacks 26 21 LEFT JOIN ( 27 22 SELECT DISTINCT sky_id, 28 23 stackRun.skycell_id, 29 stackRun. label,24 stackRun.tess_id, 30 25 stackRun.data_group, 31 26 COUNT(stack_id) AS num_filter … … 35 30 JOIN stackSumSkyfile USING(stack_id) 36 31 WHERE 1 32 -- restrict by selected filters, stackSumSkyfile.good_frac, stackRun.skycell_id, stackRun.label 33 -- and unless -rerun is supplied that no existing staticskyRun exists 37 34 -- WHERE hook 2 %s 38 35 GROUP BY sky_id 39 ) AS oldRuns40 USING( label, data_group, num_filter, skycell_id)36 ) AS ExistingRunsInputs 37 USING(tess_id, skycell_id, num_filter) 41 38 WHERE num_filter = %d 42 39 -- WHERE hook 3 %s
Note:
See TracChangeset
for help on using the changeset viewer.
