Mistři v programování na #hovnokod

SQL #378

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

HovnoKod,