count different values in column?

Поиск
Список
Период
Сортировка
От Thorsten Wenzlaff
Тема count different values in column?
Дата
Msg-id 006501c1e784$7f685d90$a57ba8c0@wxp
обсуждение исходный текст
Список pgsql-sql
Hello,
today I have a new question :)

I've a resulttable is generated by a couple of subselects and joins which
contains only one column.

Now I want to count the different values in the column.

Resulttable :  a
------
10
12
12
12
14
14
15

I need the value which is repeated most in the resulttable (in this example
12 ) !


Any suggestions ?


Thx
berger



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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: SQL Query Optimization
Следующее
От: Stéphane DEWITTE
Дата:
Сообщение: How to log outputs from pl/pgsql into a file ?