Opa,

2012/8/14 <[email protected]>

> **
> Ola Pessoal,
>
> Tenho o meu Select abaixo:
>
> select
> a.setor,
> sum(case extract(month from data) when 1 then a.valor else 0 end) as Jan,
> sum(case extract(month from data) when 1 then a.valor*b.repassa/100 else 0
> end) as RepJan,
> ........
> "FABRICA 01";400.00;40.0000000000000000
> Preciso retornar a formatação do calculo como: 40.00, apenas duas casas
> decimais.
>
> Alguem tem alguma dica ?
>

Sim. A documentação em
http://www.postgresql.org/docs/9.1/interactive/functions-math.html

>
> Att,
> Paulo.
> VisualP Sistemas.
>
>
> _______________________________________________
> pgbr-geral mailing list
> [email protected]
> https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
>
>

Abraços
-- 
JotaComm
http://jotacomm.wordpress.com
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a