RE: count(distinct col)

Поиск
Список
Период
Сортировка
От Chau, Artemis
Тема RE: count(distinct col)
Дата
Msg-id A60B56F3D180D211AC3F00A0C96931DE047871B8@orsmsx48.jf.intel.com
обсуждение исходный текст
Ответ на count(distinct col)  ("Chau, Artemis" <artemis.chau@intel.com>)
Список pgsql-novice
Runing 6.5.2, get Syntax error for the statement.

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, August 01, 2000 5:00 PM
To: Chau, Artemis
Cc: 'pgsql-novice@hub.org'
Subject: Re: [NOVICE] count(distinct col)


"Chau, Artemis" <artemis.chau@intel.com> writes:
> What is the equivalent of
> "select count(distinct col) from tbl" in PGSQL?

That's easy, "select count(distinct col) from tbl".

(If you're running 7.0 that is.  If not, why not?)

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: count(distinct col)
Следующее
От: "Wong, Edmond"
Дата:
Сообщение: Copy table to [stdout] using XML