|
@@ -29,14 +29,14 @@
|
|
t11.condition_type,
|
|
t11.condition_type,
|
|
t11.condition_group,
|
|
t11.condition_group,
|
|
(
|
|
(
|
|
- count(t11.condition_group) >= sum(baseGroupDiff)
|
|
|
|
|
|
+ count(t11.condition_group) <= sum(baseGroupDiff)
|
|
) AS groupDiff
|
|
) AS groupDiff
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
- t3.*, IFNULL(0, t5.cnt) AS cnt,
|
|
|
|
|
|
+ t3.*, IFNULL(t5.cnt, 0) AS cnt,
|
|
(
|
|
(
|
|
- t3.fit_no >= IFNULL(0, t5.cnt)
|
|
|
|
|
|
+ t3.fit_no <= IFNULL(t5.cnt, 0)
|
|
) AS baseGroupDiff
|
|
) AS baseGroupDiff
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|