IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2026, 3:09:36 PM (2 months ago)
Author:
eugene
Message:

fix various SQL errors caught by more strict mysql versions, especially: force SQL to select a specific entry from non-aggregated fields when other fields are aggregated using e.g., GROUP BY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ippTools/share/dettool_tonormalizedexp.sql

    r18561 r43014  
    11-- this is used by both 'tonormalizedexp' and 'addnormalizedexp'
     2
     3-- EAM : I believe the outer SELECT * FROM () as Bar can be removed.
    24
    35SELECT
    46    *
    57FROM (SELECT
    6       *
    7     FROM (
     8   det_id,
     9   iteration,
     10   MIN(det_type) as det_type,
     11   MIN(workdir) as workdir,
     12   MIN(camera) as camera,
     13   MIN(telescope) as telescope,
     14   MIN(exp_type) as exp_type,
     15   MIN(norm_class_id) as norm_class_id,
     16   MIN(fault) as fault,
     17   MIN(stack_class_id) as stack_class_id
     18  FROM (
    819        SELECT DISTINCT
    920            detRun.det_id,
Note: See TracChangeset for help on using the changeset viewer.