From: Rod Taylor <rbt@rbt.ca>
To: James Cooper <jim@luckydigital.com>
Cc: sql <pgsql-sql@postgresql.org>
Subject: Re: a change of query
Date: 25 Feb 2003 17:50:04 -0500
Message-ID: <1046213403.32353.50.camel@jester> (raw)
In-Reply-To: <004a01c2dd19$be6fe400$c900a8c0@jax>
References: <004a01c2dd19$be6fe400$c900a8c0@jax>
On Tue, 2003-02-25 at 17:03, James Cooper wrote:
> select distinct cp.person_id from cluster_person cp, cluster c where
> cp.cluster_id = c.cluster_id and c.c_id = 1
>
> can this query be changed to give just the row count?( of the distinct
> rows )
:) So close
select count(distinct cp.person_id) from...
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
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: rbt@rbt.ca, jim@luckydigital.com
Subject: Re: a change of query
In-Reply-To: <1046213403.32353.50.camel@jester>
* 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