Re: Problem with select statement for duplicate data

Поиск
Список
Период
Сортировка
От Jayadevan M
Тема Re: Problem with select statement for duplicate data
Дата
Msg-id OF47ABC1F9.9EFFA5CE-ON65257800.0036790A-65257800.0036A86A@ibsplc.com
обсуждение исходный текст
Ответ на Problem with select statement for duplicate data  (Machiel Richards <machielr@rdc.co.za>)
Ответы Re: Problem with select statement for duplicate data
Re: Problem with select statement for duplicate data
Список pgsql-novice
>                 select column1,column2,column3,count() from table
> group by column1,column2,column3 having count() > 1;
>
>         This however gives me the following error:
>
>                 ERROR: count(*) must be used to call a parameterless
> aggregate function

Shouldn't it be count(*)?
select column1,column2,column3,count(*).......having count(*) > 1

Regards,
Jayadevan






DISCLAIMER:

"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."






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

Предыдущее
От: Machiel Richards
Дата:
Сообщение: Problem with select statement for duplicate data
Следующее
От: Lukasz Brodziak
Дата:
Сообщение: Re: Problem with select statement for duplicate data