pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feed From: junaidmalik14 <junaidmalik14@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: count function alternative in postgres
Date: Fri, 23 Apr 2010 03:44:10 -0700 (PDT)
Message-ID: <28339789.post@talk.nabble.com> (raw )
In-Reply-To: <hpfrkh$skl$1@dough.gmane.org >
References: <28126792.post@talk.nabble.com >
<hpfrkh$skl$1@dough.gmane.org >
Thanks tkellerer.
Junaid
tkellerer wrote:
>
> junaidmalik14 wrote on 03.04.2010 14:58:
>>
>> 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
>
> Your question has been answered several times already (including this
> list)
>
> http://archives.postgresql.org/pgsql-hackers/2010-04/msg00182.php
> http://archives.postgresql.org/pgsql-hackers/2010-04/msg00179.php
> http://forums.devshed.com/postgresql-help-21/count-function-alternative-in-postgres-691450.html
> http://www.dbforums.com/postgresql/1655165-count-function-alternative-postgres.html
>
>
>
> --
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql
>
>
--
View this message in context: http://old.nabble.com/count-function-alternative-in-postgres-tp28126792p28339789.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
view thread (5+ messages) latest in thread
Message-ID: <28339789.post@talk.nabble.com>
Permalink: ../28339789.post@talk.nabble.com/
Also on: postgresql.org/message-id/28339789.post@talk.nabble.com
copy link · copy postgr.es
reply 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: <28339789.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