On Thu, 17 Mar 2005 20:21:24 +0000, Leon Stringer
<leon(dot)stringer(at)ntlworld(dot)com> wrote:
> Hi,
>
> I wondered if anyone could answer the following question:
>
> If I have a table such as the one below:
>
> col1 col_order
> -----------
> Apple 1
> Apple 2
> Orange 3
> Banana 4
> Apple 5
>
> Is there a way I can get the following results:
>
> Apple 2
> Orange 1
> Banana 1
> Apple 1
>
A function?
regards,
Jaime Casanova