IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 14, 2010, 12:02:45 PM (16 years ago)
Author:
Paul Price
Message:

Need to group by tess_id to avoid mixing tessellations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/stacktool_definebyquery_select.sql

    r26147 r27680  
    33
    44SELECT
     5    tess_id,
    56    skycell_id,
    67    filter,
    7     tess_id,
    88    num_warp,
    99    MAX(num_stack) AS num_stack
     
    1111    -- Number of stack-ready warps as a function of skycell and filter
    1212    SELECT
     13        warpSkyfile.tess_id as tess_id,
    1314        skycell_id,
    14         warpSkyfile.tess_id as tess_id,
    1515        rawExp.filter,
    1616        COUNT(warpSkyfile.skycell_id) AS num_warp -- number of warps that can be stacked
     
    2828    -- WHERE hook %s
    2929    GROUP BY
     30        warpSkyfile.tess_id,
    3031        skycell_id,
    3132        filter
     
    4546    ) AS stackSizes
    4647-- JOINing the warpsToStack and stackSizes tables
    47     USING(skycell_id, filter)
     48    USING(tess_id, skycell_id, filter)
    4849    )
    4950GROUP BY
     51    tess_id,
    5052    skycell_id,
    5153    filter
Note: See TracChangeset for help on using the changeset viewer.