Changeset 18577 for trunk/ippTools/share/stacktool_definebyquery_select.sql
- Timestamp:
- Jul 16, 2008, 9:25:45 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/stacktool_definebyquery_select.sql
r18574 r18577 1 -- This is the SELECT part of the query to get a list of skycells with 2 -- warps that are ready to be stacked, along with the numbers of warps 3 -- ready to be stacked and already in stacks. It needs to be 4 -- completed by a GROUP BY statement (see below). 5 1 6 SELECT 2 7 warpSkyfile.skycell_id, … … 4 9 stackRun.stack_id, 5 10 rawExp.filter, 6 COUNT(warpSkyfile.skycell_id) AS num_avail, 7 COUNT(stackRun.stack_id) AS num_extant 11 COUNT(warpSkyfile.skycell_id) AS num_avail, -- number available to be stacked 12 COUNT(stackRun.stack_id) AS num_extant -- number already in the stack 8 13 FROM warpRun 9 14 JOIN warpSkyfile … … 28 33 AND warpSkyfile.fault = 0 29 34 -- Here should follow the SQL in stacktool_definebyquery_groupby.sql, 30 -- after a dditional WHERE conditions have been added35 -- after any additional WHERE conditions have been added
Note:
See TracChangeset
for help on using the changeset viewer.
