Subject | Re: Convert DBISAM Sql to Firebird Sql |
---|---|
Author | Manuel Salinas |
Post date | 2006-12-03T01:51:30Z |
--- In firebird-support@yahoogroups.com, "legrand_legrand_63"
<grand.brun.63@...> wrote:
This work perfect.
Thank you!.
<grand.brun.63@...> wrote:
>Hi,
> Could you try this ?
>
> Select Numero,
> Sum(case concepto when 1 then cast(valor as float) else cast(0 as
> float) end)
> as Val1,
> Sum(case concepto when 80 then cast(valor as float) else cast(0 as
> float) end)
> as Val80,
> Sum(case concepto when 85 then cast(valor as float) else cast(0 as
> float) end)
> as Val85
> From Movtos
> group by numero
>
> Regards
> PAscal
>
This work perfect.
Thank you!.