Re: how to construct sql

From: Wes James <comptekki(at)gmail(dot)com>
To: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to construct sql
Date: 2010-06-02 20:04:33
Message-ID: AANLkTimp7u83PxBc_LWQVasr7vZu_xwLUQZlFci-clnW@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Jun 2, 2010 at 1:51 PM, Plugge, Joe R. <JRPlugge(at)west(dot)com> wrote:
> This is discussed in this Wiki:
>
>
> http://wiki.postgresql.org/wiki/Grouping_Sets
>

This would sum the results and would be incorrect. I also get this error:

select sum(page_count_count), page_count_pdate from page_count group
by rollup(page_count_pdate);
ERROR: function rollup(date) does not exist
LINE 1: ...count), page_count_pdate from page_count group by rollup(pag...
^
HINT: No function matches the given name and argument types. You
might need to add explicit type casts.

thx,

-wes

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Justin Graf 2010-06-02 20:44:22 Re: how to construct sql
Previous Message Wes James 2010-06-02 19:52:54 Re: how to construct sql