Re: SELECT DISTINCT and count(1)

Поиск
Список
Период
Сортировка
От A B
Тема Re: SELECT DISTINCT and count(1)
Дата
Msg-id dbbf25900907160316t5289f23vf00609111e851930@mail.gmail.com
обсуждение исходный текст
Ответ на SELECT DISTINCT and count(1)  (A B <gentosaker@gmail.com>)
Список pgsql-novice
Thank you both for both for your replies.

2009/7/16 Maximilian Tyrtania <maximilian.tyrtania@onlinehome.de>:
> am 16.07.2009 11:57 Uhr schrieb A B unter gentosaker@gmail.com:
>
>> Hi.
>> I need to do a
>>
>> select distinct userid  from  usertable,<more tables>  where <conditions>;
>>
>> and then count the rows in the result
>>
>> How do I do that?
>
> Try:
>
> select count(distinct(userid))  from  usertable,<more tables>  where
> <conditions>;
>
> Best wishes from Berlin,
>
> Maximilian Tyrtania
>
>
>

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

Предыдущее
От: A B
Дата:
Сообщение: SELECT DISTINCT and count(1)
Следующее
От: nobs@nobswolf.info (Emil Obermayr)
Дата:
Сообщение: Re: SELECT DISTINCT and count(1)