Re: Count Issues

Поиск
Список
Период
Сортировка
От Andre Maasikas
Тема Re: Count Issues
Дата
Msg-id 416EE980.2060701@abs.ee
обсуждение исходный текст
Ответ на Count Issues  (Dev <dev@umpa-us.com>)
Список pgsql-general
Dev wrote:

> Hello all,
>
> I am trying to get a total number of rows returned form a query.
>
> SELECT count(this) from table group by this
>
> Currently it is returning x rows  with a count of each of the group by.
>
> I need the count of the rows returned!
>
SELECT COUNT(DISTINCT this) FROM table

Andre

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

Предыдущее
От: Thomas F.O'Connell
Дата:
Сообщение: Re: Boolean
Следующее
От: Steven Klassen
Дата:
Сообщение: Re: Count Issues