Re: [SQL] Duplicate rows

Поиск
Список
Период
Сортировка
Искать
От
Bruce Stephens
Тема
Re: [SQL] Duplicate rows
Дата
в 10:07:37
Msg-id
m3wwbme2l8.fsf@cenderis.demon.co.uk
Список
Дерево обсуждения
Duplicate rows Andy Lewis <alewis@mpsi.net>
Re: [SQL] Duplicate rows Oleg Broytmann <phd@comus.ru>
Re: [SQL] Duplicate rows Andy Lewis <alewis@mpsi.net>
Re: [SQL] Duplicate rows Oleg Broytmann <phd@comus.ru>
Re: [SQL] Duplicate rows Andy Lewis <alewis@mpsi.net>
Andy Lewis  writes:

> Right, I know that there are dups in the column. But, I don't know
> where they are nor do I know their value(s). I want to be able to
> find, say, two interger values that are in the same column but,
> different rows.

How about

SELECT t1.col,t1.oid, t2.oid FROM fred AS t1, fred AS t2 
	WHERE t1.col=t2.col AND t1.oid
В списке pgsql-sql по дате отправления
От: Oleg Broytmann
Дата:
Сообщение: Re: [SQL] Duplicate rows
От: Andy Lewis
Дата:
Сообщение: Re: [SQL] Duplicate rows
FAQ