I am facing one prblem that is :
How can be delete duplicate records from table(Database) using query and Sub Query. If any one knows then PLz Forward me at
amit_mant@.rediffmail.com
Quote:
Originally Posted by amitmant
HI EveryOne
I am facing one prblem that is :
How can be delete duplicate records from table(Database) using query and Sub Query. If any one knows then PLz Forward me at
amit_mant@.rediffmail.com
this is the Qry to delete duplicate records from table(Database)
===================QRY======================
delete from table1 where Field1=(select field1 from table1 group by field1 having count(field1)>1)|||This way you will delete all records that have duplicates but if you wish to save single instance it is dangerous proposition.|||
Quote:
Originally Posted by iburyak
This way you will delete all records that have duplicates but if you wish to save single instance it is dangerous proposition.
Can you explain the concept of single instance it is dangerous proposition.sql
No comments:
Post a Comment