Re: Selecting dupes from table

Поиск
Список
Период
Сортировка
От Jean-Christian Imbeault
Тема Re: Selecting dupes from table
Дата
Msg-id 3EF82892.9050501@mega-bucks.co.jp
обсуждение исходный текст
Ответ на Selecting dupes from table  (Uros <uros@sir-mag.com>)
Ответы Re: Selecting dupes from table  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-general
Uros wrote:
>
> I want to list all entries with duplicate urls.
>
> I tried this:
>
> select id,url,title from directory where url IN
>   (select url from directory group by url having count(url) > 1)
> ORDER by url;

Try:

select id,url,title from directory where group by id, url, title having
count(url) > 1 order by url;

Think it should work,

Jan-Christian Imbeault



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

Предыдущее
От: Uros
Дата:
Сообщение: Selecting dupes from table
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Selecting dupes from table