From: Albrecht Berger <berger1517@gmx.ch>
To: pgsql <pgsql-sql@postgresql.org>
Subject: count different values in column
Date: Fri, 19 Apr 2002 11:30:47 +0200
Message-ID: <007901c1e784$e3c21010$a57ba8c0@wxp> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: berger1517@gmx.ch
Subject: Re: count different values in column
In-Reply-To: <007901c1e784$e3c21010$a57ba8c0@wxp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox