Skip site navigation (1) Skip section navigation (2)

Re: sum() over (partition by order) question

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: sum() over (partition by order) question
Date: 2008-12-31 22:13:29
Message-ID: 162867790812311413h73762d3fvf8ba00dcc71812b4@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
2008/12/31 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> writes:
>> so I have to modify query to get expected values
>> postgres=# select a, b, last_value(a) over (partition by b),
>> last_value(a) over (partition by b order by a  RANGE BETWEEN UNBOUNDED
>> PRECEDING AND UNBOUNDED FOLLOWING) from foo;
>
>> it should be noticed in doc?
>
> It is --- see the comments at the bottom of
>
> http://developer.postgresql.org/pgdocs/postgres/functions-window.html
>
>                        regards, tom lane
>

oh, yes, there it is, thank you
and Happy New Year

regards
Pavel Stehule

In response to

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2008-12-31 22:19:14
Subject: Re: sum() over (partition by order) question
Previous:From: Tom LaneDate: 2008-12-31 22:06:23
Subject: Re: sum() over (partition by order) question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group