Re: how to construct sql

Поиск
Список
Период
Сортировка
От Wes James
Тема Re: how to construct sql
Дата
Msg-id AANLkTimp7u83PxBc_LWQVasr7vZu_xwLUQZlFci-clnW@mail.gmail.com
обсуждение исходный текст
Ответ на Re: how to construct sql  ("Plugge, Joe R." <JRPlugge@west.com>)
Список pgsql-sql
On Wed, Jun 2, 2010 at 1:51 PM, Plugge, Joe R. <JRPlugge@west.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Wes James
Дата:
Сообщение: Re: how to construct sql
Следующее
От: Justin Graf
Дата:
Сообщение: Re: how to construct sql