DISTINCT count(*), possible?

From: Matthew Hagerty <matthew(at)venux(dot)net>
To: pgsql-sql(at)postgreSQL(dot)org
Subject: DISTINCT count(*), possible?
Date: 1999-06-16 02:59:54
Message-ID: 4.1.19990615225634.009e7b60@mail.venux.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Chris Bitmead 1999-06-16 04:03:19 Re: [SQL] DISTINCT count(*), possible?
Previous Message news.postgres.sql 1999-06-16 00:17:49 subscribe pgsql-sql