Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: DUPLICATE ROWS.
Seema Singh wrote:
> Here is
> select count(test_id) from test;
> shows 102 rows
>
> select count(distinct(test_id) from test; shows 100 rows
>
> How to find those 2 rows ?
> I tried to run to find by using max rowid or min rowid but unable to.if some
> one have quesry can pl send to me
> thx
try
select test_id,count(*)
from test
having count(*)>1
group by test_id;
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Wed Jun 30 2004 - 17:25:09 CDT
![]() |
![]() |