Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5DED56322DC for ; Sat, 3 Apr 2010 09:59:06 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 33716-10 for ; Sat, 3 Apr 2010 12:58:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mail.postgresql.org (Postfix) with ESMTP id 9CBAD6322B5 for ; Sat, 3 Apr 2010 09:58:55 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Ny2w9-0003SK-Dr for pgsql-sql@postgresql.org; Sat, 03 Apr 2010 05:58:53 -0700 Message-ID: <28126792.post@talk.nabble.com> Date: Sat, 3 Apr 2010 05:58:53 -0700 (PDT) From: junaidmalik14 To: pgsql-sql@postgresql.org Subject: count function alternative in postgres MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: junaidmalik14@gmail.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201004/5 X-Sequence-Number: 33932 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.