Re: Sorted group by
От | Matthew Wakeling |
---|---|
Тема | Re: Sorted group by |
Дата | |
Msg-id | alpine.DEB.2.00.1008101702100.2654@aragorn.flymine.org обсуждение исходный текст |
Ответ на | Re: Sorted group by (Thomas Kellerer <spam_eater@gmx.net>) |
Ответы |
Re: Sorted group by
Re: Sorted group by |
Список | pgsql-performance |
On Tue, 10 Aug 2010, Thomas Kellerer wrote: > No. It's built in (8.4) and it's called Windowing functions: > http://www.postgresql.org/docs/8.4/static/tutorial-window.html > http://www.postgresql.org/docs/8.4/static/functions-window.html > > SELECT group, last_value(value) over(ORDER BY number) > FROM table I may be mistaken, but as I understand it, a windowing function doesn't reduce the number of rows in the results? Matthew -- Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats. -- Howard Aiken
В списке pgsql-performance по дате отправления: