Re: removing duplicate entries in a statement - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: removing duplicate entries in a statement
Date
Msg-id 20070427195430.GA18534@wolff.to
Whole thread Raw
In response to removing duplicate entries in a statement  (kvnsmnsn@cs.byu.edu)
List pgsql-novice
On Fri, Apr 27, 2007 at 09:18:59 -0600,
  kvnsmnsn@cs.byu.edu wrote:
>
> The problem with this is that <def> has some duplicate entries, seve-
> ral occurrences of a row that has precisely the same column values as
> some other row in <def>, so I'm getting duplicate rows in table
> <output_table>.
>
> This solves my problem, but it seems to take an enormous amount of
> time to execute.  Is this the best way to remove duplicate entries, or
> is there some other way?

You could try left joining abc with a subselect of abc obtained using IN.

pgsql-novice by date:

Previous
From: kvnsmnsn@cs.byu.edu
Date:
Subject: including limited lines depending on input parameter
Next
From: Fei Liu
Date:
Subject: database design question, new to postgresql