From: Matthew Hagerty <matthew@venux.net>
To: pgsql-sql@postgreSQL.org
Subject: DISTINCT count(*), possible?
Date: Tue, 15 Jun 1999 22:59:54 -0400
Message-ID: <4.1.19990615225634.009e7b60@mail.venux.net> (raw)
Greetings,
Can someone tell me how I can get this to work?
select DISTINCT count(address1) from aro;
returns 240, which is wrong. But this:
select DISTINCT address1 from aro;
returns 219, which is exactally what I am looking for, minus the query
output. I don't need the tuples, just a count of distinct addresses.
Thanks,
Matthew
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: matthew@venux.net
Subject: Re: DISTINCT count(*), possible?
In-Reply-To: <4.1.19990615225634.009e7b60@mail.venux.net>
References: <4.1.19990615225634.009e7b60@mail.venux.net>
* 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