Subject | Re: sql query |
---|---|
Author | markd_mms |
Post date | 2005-02-24T01:02:42Z |
--- In firebird-support@yahoogroups.com, Alexandre Benson Smith
<iblist@t...> wrote:
<iblist@t...> wrote:
> Hi !i got it! thank you!
>
> I think there is a bunch of ways to solve this, one is this:
>
> select
> Date,
> sum(Case when Status = '1' then 1 else 0 end),
> sum(Case when Status = '2' then 1 else 0 end),
> sum(Case when Status = '3' then 1 else 0 end)
> from
> PedidoVenda
> group by
> 1
>
> got it ?
>
> see you !
>