Re: COUNT DISTINCT

Поиск
Список
Период
Сортировка
От Len Morgan
Тема Re: COUNT DISTINCT
Дата
Msg-id 01ea01bfee69$15222800$0908a8c0@H233.bstx.cc
обсуждение исходный текст
Ответ на COUNT DISTINCT  ("Eric Jain" <jain@gmx.net>)
Список pgsql-general
I think what you are really looking for is a GROUPing:

SELECT url,id,count(*) FROM log GROUP BY url,id ;

The number of records returned is the NUMBER if different url/id pairs.  The
value of count(*) in each record is the count
for that particular pair.  Hope this helps

len morgan


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

Предыдущее
От: Jesus Aneiros
Дата:
Сообщение: Re: Re: Postgresql and Postmaster response
Следующее
От: Denis Perchine
Дата:
Сообщение: Patch do allow postfix use PostgreSQL as a map.