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

From Bruno Wolff III
Subject Re: filtering out doubles with SELECT
Date
Msg-id 20030312151335.GA25424@wolff.to
Whole thread Raw
In response to Re: filtering out doubles with SELECT  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Responses Re: filtering out doubles with SELECT
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).

pgsql-novice by date:

Previous
From: Tim Pushor
Date:
Subject: Re: SERIAL does not ROLLBACK
Next
From: Jens Eliasson
Date:
Subject: Re: SERIAL does not ROLLBACK