From: junaidmalik14 <junaidmalik14@gmail.com>
To: pgsql-sql@postgresql.org
Subject: count function alternative in postgres
Date: Sat, 3 Apr 2010 05:58:53 -0700 (PDT)
Message-ID: <28126792.post@talk.nabble.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: junaidmalik14@gmail.com
Subject: Re: count function alternative in postgres
In-Reply-To: <28126792.post@talk.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox