Subject | Re: [ib-support] firebird1.5 group by question |
---|---|
Author | Helen Borrie |
Post date | 2003-04-30T05:22:06Z |
At 01:20 PM 30/04/2003 +0800, you wrote:
heLen
>Thank you answer,o.workingorder is not in the output set.
>
>But this query error too :
>
>Select max(o.workingorder), o.ColorId,max(c.name) colorname , max(c.colorno)
>colorno
> from OrderColor O
> join color c on (o.colorid = c.colorid)
> group by o.colorid
> order by o.workingorder
>if like this then no errorThe first column is a calculated value - it is not o.workingorder.
>
>Select max(o.workingorder), o.ColorId,max(c.name) colorname , max(c.colorno)
>colorno
> from OrderColor O
> join color c on (o.colorid = c.colorid)
> group by o.colorid
> order by 1
heLen