Re: Problem with select statement for duplicate data - Mailing list pgsql-novice

From Lew
Subject Re: Problem with select statement for duplicate data
Date
Msg-id if525t$ac0$1@news.albasani.net
Whole thread Raw
In response to Re: Problem with select statement for duplicate data  (Jayadevan M <Jayadevan.Maymala@ibsplc.com>)
List 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 by date:

Previous
From: Mark Kelly
Date:
Subject: Re: in PostgreSQL 9.0.2 / pgAdmin III - ERROR: relation "[table name]" already exists
Next
From: Lew
Date:
Subject: Re: Migration from MySQL to PostgreSQL : Datatypes?