Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: identical columns
>I have the following problem: I have a table of which I know that it
>contains duplicate rows. I want to find all rows that are duplicate.
select name, count(*)
from emp
group by name
having count(*) > 1;
If you need to delete the duplicate rows, then search for quite recent posts in these newsgroups.
Arjan. Received on Wed Sep 09 1998 - 14:50:39 CDT