Re: limited field duplicates

From: Don Isgitt <djisgitt(at)soundenergy(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: postgresql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: limited field duplicates
Date: 2003-01-31 20:52:50
Message-ID: 3E3AE222.90501@soundenergy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Yes! Thank you very much!!

Tom Lane wrote:

>Don Isgitt <djisgitt(at)soundenergy(dot)com> writes:
>
>>I am trying to find rows in a table that are duplicates only in the
>>sense of certain columns; i.e, not all columns are the same, and then
>>for each duplicate entry, I want to retrieve one of the columns that is
>>not part of the duplication criteria.
>>
>
>Try SELECT DISTINCT ON. There's a simple example in the SELECT
>reference page (something about weather reports I think).
>
> regards, tom lane
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-01-31 21:07:43 Re: Query performance PLEASE HELP
Previous Message Iain Cox 2003-01-31 20:50:21 How the Hell do I get off this List?