mysql_real_escape_string / Говнокод #700 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 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

Не пускайте бразильских футболистов к компьютеру!

Запостил: guest guest, (Updated )

Комментарии (0) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8