Re: select count of distinct rows

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: select count of distinct rows
Дата
Msg-id c2d9e70e0512101712u760f3eb4x3f5b0820233d0530@mail.gmail.com
обсуждение исходный текст
Ответ на Re: select count of distinct rows  ("Foster, Stephen" <stephenlfoster@comcast.net>)
Ответы Re: select count of distinct rows  ("Foster, Stephen" <stephenlfoster@comcast.net>)
Список pgsql-sql
On 12/10/05, Foster, Stephen <stephenlfoster@comcast.net> wrote:
> Well this should work but I tried it and it didn't.
>
> SELECT DISTINCT COUNT(*) FROM mytable;
>

No, it shouldn't work... actually is a non-sense, count will return
just one value so there is nothing to be distinct with...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)


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

Предыдущее
От: "Foster, Stephen"
Дата:
Сообщение: Re: select count of distinct rows
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: select count of distinct rows