Re: SELECT syntax question - combining COUNT and DISTINCT

Поиск
Список
Период
Сортировка
От zmilos@sympatico.ca (zhix)
Тема Re: SELECT syntax question - combining COUNT and DISTINCT
Дата
Msg-id c59f4459.0310061638.924d06a@posting.google.com
обсуждение исходный текст
Ответ на Re: SELECT syntax question - combining COUNT and DISTINCT  (paul@entropia.co.uk)
Список pgsql-novice
This should give you distinct values counts:

select pdb_id,count(*)
from   chain
where  chain_id = 'A'
group by pdb_id;

zhix.

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

Предыдущее
От: Bruno LEVEQUE
Дата:
Сообщение: Re: 7.4Beta2 installation not finding OpenSSL
Следующее
От: Brian Slinn
Дата:
Сообщение: Trigger return value