Re: Problem with select statement for duplicate data

Поиск
Список
Период
Сортировка
От Lew
Тема Re: Problem with select statement for duplicate data
Дата
Msg-id if525t$ac0$1@news.albasani.net
обсуждение исходный текст
Ответ на Re: Problem with select statement for duplicate data  (Jayadevan M <Jayadevan.Maymala@ibsplc.com>)
Список pgsql-novice
Machiel Richards wrote:
>> 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

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

That's what the error message says.  It gives the solution in the report of
the problem.

--
Lew
Ceci n'est pas une pipe.

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

Предыдущее
От: Mark Kelly
Дата:
Сообщение: Re: in PostgreSQL 9.0.2 / pgAdmin III - ERROR: relation "[table name]" already exists
Следующее
От: Lew
Дата:
Сообщение: Re: Migration from MySQL to PostgreSQL : Datatypes?