group number

Поиск
Список
Период
Сортировка
От Rene Romero Benavides
Тема group number
Дата
Msg-id CANaGW0_KBbGbj1UbVnk6Ecu5AGHSqoxi==-Q6erDkdfaC=b_Nw@mail.gmail.com
обсуждение исходный текст
Ответы Re: group number  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
Thank you very much for your attention.

I'm facing a mental block to achieve this in a performant manner:

Input:
a
a
b
c
c
c
d

Desired output:

a 1
a 1
b 2
c 3
c 3
c 3
d 4


Any suggestions? Have a good day (night, afternoon or evening) and greetings from México City.

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

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: Optimize query for listing un-read messages
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: group number