count function alternative in postgres

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


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-tp28126793p28126793.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Browse pgsql-general by date

  From Date Subject
Next Message junaid malik 2010-04-03 13:34:19 count function alternative in postgres
Previous Message Andreas Kretschmer 2010-04-03 12:07:56 Re: join two tables without a key