Re: filtering out doubles with SELECT - Mailing list pgsql-novice

From Jules Alberts
Subject Re: filtering out doubles with SELECT
Date
Msg-id 20030313073627.4695A1CB1B1@koshin.dsl.systemec.nl
Whole thread Raw
In response to Re: filtering out doubles with SELECT  (Bruno Wolff III <bruno@wolff.to>)
List 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 by date:

Previous
From: Michiel Lange
Date:
Subject: looking up members of a group
Next
From: "paul butler"
Date:
Subject: Re: client