Re: filtering out doubles with SELECT

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: filtering out doubles with SELECT
Дата
Msg-id 20030312151335.GA25424@wolff.to
обсуждение исходный текст
Ответ на Re: filtering out doubles with SELECT  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Ответы Re: filtering out doubles with SELECT  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Список pgsql-novice
On Wed, Mar 12, 2003 at 12:11:05 +0100,
  Jules Alberts <jules.alberts@arbodienst-limburg.nl> wrote:
>
> select * from tbl t1 where not exists (select * from tbl t2 where
> t1.COL1=t2.COL1 and t1.COL2=t2.COL2 and t1.oid <> t2.oid)

Using DISTINCT ON might be faster (though it's nonstandard).

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

Предыдущее
От: Tim Pushor
Дата:
Сообщение: Re: SERIAL does not ROLLBACK
Следующее
От: Jens Eliasson
Дата:
Сообщение: Re: SERIAL does not ROLLBACK