How to delete the duplicate row from the employee table?

Showing Answers 1 - 9 of 9 Answers

Ratna

  • Oct 10th, 2006
 

delete from <table_name> where rowid not in (select min(rowid) from <table_name> group by col1,col2....)

  Was this answer useful?  Yes

mamathi

  • Oct 11th, 2006
 

hi try this it will workdelete emp where name in('anand','jack','yokesh');where in the employee table all are having the same sal.try out

  Was this answer useful?  Yes

vinoth

  • Oct 11th, 2006
 

hi, This will help u i think therw the correlated subquery.... delete from as where rowid not in (select min(rowid) from as where .=.

  Was this answer useful?  Yes

Pawan Ahuja

  • Dec 3rd, 2006
 

Delete from <table_name> where rowid not in (select min(rowid) from <table_name> group by col1,col2....)

Regards

Pawan Ahuja

  Was this answer useful?  Yes

Sujata Bisoi

  • Mar 8th, 2007
 

 i think it will perfectly work:-
    


       delete empname from emp A where  rowid > (select min(rowid) from emp B where A.ename = B.ename);

  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