Re: identifying duplicates in table with redundancies

Поиск
Список
Период
Сортировка
От Tarlika Elisabeth Schmitz
Тема Re: identifying duplicates in table with redundancies
Дата
Msg-id 20100927175418.162ee906@dick.coachhouse
обсуждение исходный текст
Ответ на Re: identifying duplicates in table with redundancies  (Oliver d'Azevedo Christina <oliveiros.cristina@gmail.com>)
Список pgsql-sql
On Fri, 24 Sep 2010 18:12:18 +0100
Oliver d'Azevedo Christina <oliveiros.cristina@gmail.com> wrote:

>>> SELECT DISTINCT trainer_id,trainer_name
>>> FROM (
>>> SELECT trainer_name   -- The field you want to test for duplicates
>>> FROM (
>>> SELECT DISTINCT "trainer_id","trainer_name"
>>> FROM student
>>> ) x
>>> GROUP BY "trainer_name"    -- the field you want to test for  
>>> duplicates
>>> HAVING (COUNT(*) > 1)
>>> ) z
>>> NATURAL JOIN student y  



What indices would you recommend for this operation?

-- 

Best Regards,
Tarlika Elisabeth Schmitz


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

Предыдущее
От: Vibhor Kumar
Дата:
Сообщение: Re: pgdump with insert command help
Следующее
От: gangadhar bandaru
Дата:
Сообщение: eB7E2R