group by percentage of row to keep, and filter out -0-
This commit is contained in:
parent
752aeffa06
commit
2253d65047
@ -200,6 +200,7 @@ tdr AS (
|
|||||||
CROSS JOIN log
|
CROSS JOIN log
|
||||||
WHERE
|
WHERE
|
||||||
e.flag
|
e.flag
|
||||||
|
AND e.plan_units <> 0
|
||||||
GROUP BY
|
GROUP BY
|
||||||
o.fspr
|
o.fspr
|
||||||
,o.plnt
|
,o.plnt
|
||||||
@ -230,6 +231,7 @@ tdr AS (
|
|||||||
,o.r_rate
|
,o.r_rate
|
||||||
,o.c_currency
|
,o.c_currency
|
||||||
,o.c_rate
|
,o.c_rate
|
||||||
|
,(-e.qty/e.plan_units) --removal_rate
|
||||||
,o.calc_status
|
,o.calc_status
|
||||||
,o.flag
|
,o.flag
|
||||||
,o.order_date
|
,o.order_date
|
||||||
|
Loading…
Reference in New Issue
Block a user