Re: limited field duplicates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: limited field duplicates
Дата
Msg-id 21027.1044039983@sss.pgh.pa.us
обсуждение исходный текст
Ответ на limited field duplicates  (Don Isgitt <djisgitt@soundenergy.com>)
Список pgsql-general
Don Isgitt <djisgitt@soundenergy.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

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

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: very basic question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ALTER STATISTIC and dump ?