Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: DUPLICATE ROWS.

Re: DUPLICATE ROWS.

From: Bricklen Anderson <BAnderson_at_PresiNET.com>
Date: Wed, 30 Jun 2004 15:28:15 -0700
Message-ID: <40E33E7F.2090605@PresiNET.com>


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_at_freelists.org put 'unsubscribe' in the subject line.
--
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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US