How do I select duplicated rows

Поиск
Список
Период
Сортировка
Искать

How do I select duplicated rows

От:
Á¤ÀçÀÍ <root@advance.sarang.net>
Дата:

I had one table(test) such as follows:
   rowid int primary key,
   name  char(20)
   ....

I try to compare the attribute name, and want to select 
  all duplicated rows that had same name.

I create SELECT statement as follows:
  select rowid from test 
    where name in (select name from test group by name 
                          having 1 select rowid from t where name in (   
test->    select name from t group by name having 1
FAQ