- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
select
--
(case
when (sum(distinct sub.est_cost) - sum(distinct sub.act_cost)) > 0 then
(sum(distinct sub.est_cost) - sum(distinct sub.act_cost))
when (sum(distinct sub.est_cost) - sum(distinct sub.act_cost)) < 0 then
(sum(distinct sub.est_cost) - sum(distinct sub.act_cost))
else
0
end)
--
from blablabla
Комментарии (0) RSS
Добавить комментарий