Re: DISTINCT and COUNT help

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: DISTINCT and COUNT help
Дата
Msg-id e2aohusr05gfipui4m467mii23au3pc48e@4ax.com
обсуждение исходный текст
Ответ на DISTINCT and COUNT help  (Julie Keywell <julie@iparenting.com>)
Список pgsql-novice
On Fri, 28 Jun 2002 00:10:56 -0500, Julie Keywell <julie@iparenting.com> wrote:
>I would like to count the number of distinct values in a column.  Is
>there any way to combine DISTINCT and COUNT and if so, what is the
>syntax?
Julie, it's so obvious, you didn't dare to think of it :-)

SELECT COUNT(DISTINCT col) FROM t;

Servus
 Manfred



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

Предыдущее
От: Chris
Дата:
Сообщение: Re: DISTINCT and COUNT help
Следующее
От: AarniRuuhimäki / Megative Tmi / KYMI.com
Дата:
Сообщение: Parser function / command ?