How to find out duplicate records ?

Showing Answers 1 - 11 of 11 Answers

saket kumar singh

  • Oct 12th, 2005
 

using rowid

  Was this answer useful?  Yes

Atanu Basu

  • Jun 23rd, 2006
 

LET THINK "EMP" IS A TABLE AND "EMP_CODE" IS THE KEY ATTRIBUTE

SELECT * FROM EMP WHERE ROWID NOT  IN 

                              (SELECT MIN(ROWID) FROM EMP  GROUP BY EMP_CODE) 

  Was this answer useful?  Yes

venkat balabadruni

  • Dec 4th, 2006
 

select * from emp where rowid not in ( select min(rowid) from emp group by ename);

  Was this answer useful?  Yes

vara

  • Nov 18th, 2007
 

select * from emp a where rowid >(select min(rowid) from emp b where a.empno = b.empno)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions