Re: Consecutive row count query

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: Consecutive row count query
Дата
Msg-id c2d9e70e0503171332763fd02a@mail.gmail.com
обсуждение исходный текст
Ответ на Consecutive row count query  (Leon Stringer <leon.stringer@ntlworld.com>)
Список pgsql-sql
On Thu, 17 Mar 2005 20:21:24 +0000, Leon Stringer
<leon.stringer@ntlworld.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Consecutive row count query
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Consecutive row count query