Re: DUPLICATE ROWS.

  • From: Bricklen Anderson <BAnderson@xxxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Wed, 30 Jun 2004 15:28:15 -0700

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;
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: