regd count(count(*)) in group by

Поиск
Список
Период
Сортировка
От Yuva Chandolu
Тема regd count(count(*)) in group by
Дата
Msg-id A0F24737FCB34F489EC955D143BDD8510173E0DF@exchange-sf1.corp.ebates.com
обсуждение исходный текст
Ответы Re: regd count(count(*)) in group by  (Rod Taylor <rbt@zort.ca>)
Список pgsql-hackers
Hi,

We have a query "select count(count(*)) from test group by
trunc(test_date)". This works fine with Oracle but when moving to postgres I
changed it to "select count(count(*)) from test group by date_trunc('day',
test_date)" but I get the following error

ERROR:  Aggregate function calls may not be nested

Can some one help me...

Thanks
Yuva


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Password sub-process ...
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: regd count(count(*)) in group by