How to delete set of records at a time where all the records having same values , except the Rowid differs?

Questions by myquery   answers by myquery

Showing Answers 1 - 5 of 5 Answers

Abhishek Gupta

  • Mar 16th, 2006
 

yes you can delete the duplicate records with the help of a sql query as follows

delete from table_name where rowid not in(select max(rowid) from table_name group by field_name)

in this way only rowid with distinct values will remain and the rest will be removed.I hope it will help you out.

  Was this answer useful?  Yes

Anjali

  • Aug 23rd, 2006
 

Abhishek, I think in the group by clause u need to add all the field names, so as to make sure the records are exactly same.

Anjali

  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