Re: Duplicate records - Mailing list pgsql-sql

From Ezequias Rodrigues da Rocha
Subject Re: Duplicate records
Date
Msg-id 55c095e90702020559t27296667g5a46aca1b5386679@mail.gmail.com
Whole thread Raw
In response to Re: Duplicate records  ("Bart Degryse" <Bart.Degryse@indicator.be>)
Responses Re: Duplicate records  ("Shoaib Mir" <shoaibmir@gmail.com>)
Re: Duplicate records  ("Bart Degryse" <Bart.Degryse@indicator.be>)
List pgsql-sql
Thank you but are you talking of two tables ? I intent to check in only one table.

Please explain to me.

Ezequias

2007/2/2, Bart Degryse < Bart.Degryse@indicator.be>:
select *
from mytable A, (select field1, field2, count(*) from mytable group by field1, field2 having count(*) > 1) B
where A.field1 = B.field1 and A.field2 = B.field2

>>> "Ezequias Rodrigues da Rocha" < ezequias.rocha@gmail.com> 2007-02-02 14:48 >>>

Hi list,

I am making some data minning and would like to know if someone tell me how to retrieve the duplicate records based in one or two fields of my table.

Any help would be welcomed.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/



--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/

pgsql-sql by date:

Previous
From: "Bart Degryse"
Date:
Subject: Re: Duplicate records
Next
From: "Shoaib Mir"
Date:
Subject: Re: Duplicate records