Re: select count of distinct rows - Mailing list pgsql-sql

From Jaime Casanova
Subject Re: select count of distinct rows
Date
Msg-id c2d9e70e0512101657o50263342ma1769631b3a67133@mail.gmail.com
Whole thread Raw
In response to select count of distinct rows  (Havasvölgyi Ottó <h.otto@freemail.hu>)
List pgsql-sql
On 12/10/05, Havasvölgyi Ottó <h.otto@freemail.hu> wrote:
> Hi,
>
> I would like to select the count of distinct rows in a table.
>
> SELECT COUNT(DISTINCT *) FROM mytable;
>

are really all the fields distincts? the table doesn't have a pk?

> This does not work. How can I do it with Postgres?
>
> Thanks,
> Otto
>


--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)


pgsql-sql by date:

Previous
From: Havasvölgyi Ottó
Date:
Subject: select count of distinct rows
Next
From: Havasvölgyi Ottó
Date:
Subject: Re: select count of distinct rows