Re: filtering out doubles with SELECT

Поиск
Список
Период
Сортировка
От Jules Alberts
Тема Re: filtering out doubles with SELECT
Дата
Msg-id 20030313073627.4695A1CB1B1@koshin.dsl.systemec.nl
обсуждение исходный текст
Ответ на Re: filtering out doubles with SELECT  (Bruno Wolff III <bruno@wolff.to>)
Список 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).

Thanks, I didn't know that one!

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

Предыдущее
От: Michiel Lange
Дата:
Сообщение: looking up members of a group
Следующее
От: "paul butler"
Дата:
Сообщение: Re: client