IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2010, 12:46:06 PM (16 years ago)
Author:
Paul Price
Message:

Fix advance queries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ippTools/share/bgtool_advancechip.sql

    r28199 r28471  
    88    AND chipProcessedImfile.quality = 0
    99    AND chipProcessedImfile.fault = 0
    10     AND chipBackgroundImfile.fault = 0
    1110-- WHERE hook %s
    1211GROUP BY chip_bg_id
    13 HAVING COUNT(chipBackgroundImfile.chip_bg_id) = COUNT(chipProcessedImfile.chip_id)
     12HAVING
     13    COUNT(chipBackgroundImfile.class_id) = COUNT(chipProcessedImfile.class_id)
     14    AND SUM(IF(chipBackgroundImfile.fault > 0, 1, 0)) = 0
     15    AND SUM(IF(chipBackgroundImfile.quality > 0, 1, 0)) != COUNT(*)
Note: See TracChangeset for help on using the changeset viewer.