Re: DISTINCT and COUNT help

Поиск
Список
Период
Сортировка
От Ludwig Lim
Тема Re: DISTINCT and COUNT help
Дата
Msg-id 20020628105140.13482.qmail@web40011.mail.yahoo.com
обсуждение исходный текст
Ответ на DISTINCT and COUNT help  (Julie Keywell <julie@iparenting.com>)
Список pgsql-novice
Julie:

--- Julie Keywell <julie@iparenting.com> wrote:
> Hi there!
>
> 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?

try SELECT COUNT(DISTINCT(<column name>))
    FROM .....


ludwig


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com



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

Предыдущее
От: AarniRuuhimäki / Megative Tmi / KYMI.com
Дата:
Сообщение: Parser function / command ?
Следующее
От: Tony Griffiths
Дата:
Сообщение: Accessing geometric values from embedded SQL