Subject | Re: [firebird - support] SQL statement -- group by on union |
---|---|
Author | kaczy27 |
Post date | 2004-09-24T10:41:53Z |
--- In firebird-support@yahoogroups.com, David C <dac2002lion@y...>
wrote:
make the union query a storedprocedure
and
select field1, field2, field3 from storedprocedure group by field1,
field2, field3
wrote:
> HiSure,
>
> I wonder if firebird support on his language SQL ,
> Group by statement on Union statement
>
> like this:
>
> Selec t1.field1, t1.field2, t1.field3
> from table1 t1
> union
> Selec t2.field1, t2.field2, t2.field3
> from table2 t2
> group by 1,2 --> this is possible over all Union
> statement
>
make the union query a storedprocedure
and
select field1, field2, field3 from storedprocedure group by field1,
field2, field3
> Thanks for your helpHTH
>CUIN Kaczy
>
> David Contreras
> Developer
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Información de Estados Unidos y América Latina, en Yahoo! Noticias.
> Visítanos en http://noticias.espanol.yahoo.com