From: Thorsten Wenzlaff <thorsten.wenzlaff@gmx.de>
To: pgsql <pgsql-sql@postgresql.org>
Subject: count different values in column?
Date: Fri, 19 Apr 2002 11:27:59 +0200
Message-ID: <006501c1e784$7f685d90$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: thorsten.wenzlaff@gmx.de
Subject: Re: count different values in column?
In-Reply-To: <006501c1e784$7f685d90$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