count function alternative in postgres

From: junaidmalik14 <junaidmalik14(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: count function alternative in postgres
Date: 2010-04-03 12:58:53
Message-ID: 28126792.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Is there any alternative of mysql function COUNT(DISTINCT expr,[expr...]) in
postgres. We get error if we

write count like this count(distinct profile.id, profile.name, profile.age)
but it works well in mysql.

Reference url is given below

http://dev.mysql.com/doc/refman/5.1/en/group-by-functions.html#function_count-distinct

Thanks
--
View this message in context: http://old.nabble.com/count-function-alternative-in-postgres-tp28126792p28126792.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Cliff Wells 2010-04-04 22:12:53 INSERT INTO...RETURNING vs SELECT
Previous Message Brad Nicholson 2010-04-01 13:12:51 Re: Capacity planning.