counting distinct values

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема counting distinct values
Дата
Msg-id 393EE030.C4F9897E@selectacast.net
обсуждение исходный текст
Ответы Re: counting distinct values  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
Using the example from
http://www.postgresql.org/docs/aw_pgsql_book/node59.html, what would I
do if I wanted to know the number of different cities where I had a
friend in each state?  select count(city) group by state; would not work
because if you had two friends in the same city it would be counted
twice.


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

Предыдущее
От: Gustavo Henrique
Дата:
Сообщение: sql doubts
Следующее
От: "Vincenzo Passoli"
Дата:
Сообщение: RE: Re: how to know when a table is altered