Re: a change of query

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: a change of query
Дата
Msg-id 1046213403.32353.50.camel@jester
обсуждение исходный текст
Ответ на a change of query  ("James Cooper" <jim@luckydigital.com>)
Список pgsql-sql
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.asc

В списке pgsql-sql по дате отправления:

Предыдущее
От: Brad Hilton
Дата:
Сообщение: Re: a change of query
Следующее
От: "Chad Thompson"
Дата:
Сообщение: Re: a change of query