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

Home -> Community -> Usenet -> c.d.o.misc -> Re: find duplicates

Re: find duplicates

From: M. Stratford <mark.stratford_at_misys.com>
Date: 14 Jan 2003 07:56:16 -0800
Message-ID: <2bcc2302.0301140756.3a4a5af7@posting.google.com>


you could count the number of instances of each value and only return those with more than 1 occurence:

select ks,count(*)
from my_tab
group by ks
having count(*)> 1
/

Mark Stratford Received on Tue Jan 14 2003 - 09:56:16 CST

Original text of this message

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