Re: e: Running/cumulative count using windows - Mailing list pgsql-general

From Merlin Moncure
Subject Re: e: Running/cumulative count using windows
Date
Msg-id CAHyXU0zig--xzfPjDFYuYANuRz2oVAtTZ-nX6yqx773=cvt0Ag@mail.gmail.com
Whole thread Raw
In response to e: Running/cumulative count using windows  (e-letter <inpost@gmail.com>)
List pgsql-general
On Fri, Sep 13, 2013 at 8:18 AM, e-letter <inpost@gmail.com> wrote:
>> test=*# select extract (year from signup_date)::text || '/' ||
> extract(month from signup_date)::text, count(email_address),
> sum(count(email_address)) over (ROWS UNBOUNDED PRECEDING) from test
> group by 1 order by 1;
>
> Have searched the manual and been unable to find reference to the
> commands 'unbounded' and 'preceding'; can someone please advise where
> to read about these commands?

http://www.postgresql.org/docs/9.1/static/sql-expressions.html#SYNTAX-WINDOW-FUNCTIONS

merlin


pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Best way to populate nested composite type from JSON`
Next
From: Chris Travers
Date:
Subject: Re: Best way to populate nested composite type from JSON`