Re: query for non-unique values?

Поиск
Список
Период
Сортировка
От snpe
Тема Re: query for non-unique values?
Дата
Msg-id 200209241504.38267.snpe@snpe.co.yu
обсуждение исходный текст
Ответ на query for non-unique values?  ("Andy Kriger" <akriger@greaterthanone.com>)
Список pgsql-general
select dup_columns,count((*)
from table
group by dup_columns
having count(*) > 1

On Monday 23 September 2002 11:46 pm, Andy Kriger wrote:
> I have a file of legacy data that has duplicate entries in a column that
> I'd like to have a unique index on. How can I query to find the duplicates
> (so I can determine if they can be thrown out)?
>
> thx
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org


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

Предыдущее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: Aggregate of blocks written to a database
Следующее
От: Tourtounis Sotiris
Дата:
Сообщение: Number of disk pages obtained by explain analyze