Subject | Re: [firebird-support] some sql help |
---|---|
Author | Helen Borrie |
Post date | 2004-03-01T12:51:44Z |
At 01:23 PM 1/03/2004 +0100, you wrote:
200 1
300 2
/hb
>Hi, if I have the following table:What results did you hope for? You should get
>
>Id Value
>1 100
>1 200
>2 300
>
>If I want to retrieve the maximum value in each Id group, i.e. line 2
>and 3, I was hoping that I could write:
>
>Select max(Value), Id
> >From aTable
>Group by Id
>
>I'm not getting the results I was hoping for using this method, but it
>might be that there is something else that is wrong since this is just
>part of a stored procedure.
200 1
300 2
/hb