Search Postgresql Archives

Re: e: Running/cumulative count using windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 13, 2013 at 8:18 AM, e-letter <inpost@xxxxxxxxx> 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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux