Re: Duplicate records

Поиск
Список
Период
Сортировка
От Bart Degryse
Тема Re: Duplicate records
Дата
Msg-id 45C350D8.A3DD.0030.0@indicator.be
обсуждение исходный текст
Ответ на Duplicate records  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
Ответы Re: Duplicate records  ("Ezequias Rodrigues da Rocha" <ezequias.rocha@gmail.com>)
Список pgsql-sql
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 d o que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/

В списке pgsql-sql по дате отправления:

Предыдущее
От: "Shoaib Mir"
Дата:
Сообщение: Re: Duplicate records
Следующее
От: "Ezequias Rodrigues da Rocha"
Дата:
Сообщение: Re: Duplicate records