write a query to delete similar records in same table

Answer Posted / nirmalendu

delete from table_name where rowid not in(select min(rowid)
from table_name group by column_name);

** column_name which having duplicate record

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between join and union? : Sql dba

541


What is rank function in sql?

522


How do you respond to dementia behavior?

520


What are the different types of joins in sql?

575


What is rank dense_rank and partition in sql?

531






Why do we need pl sql?

540


Why use triggers in sql?

489


What is pl/sql table? Why is it used?

550


How to read/write files from pl/sql?

572


When is the update_statistics command used?

566


What is nvarchar max in sql?

572


what are numeric data types? : Sql dba

564


What is auto increment in sql?

577


Why we use stored procedure instead of query?

525


what are the features and advantages of object-oriented programming? : Sql dba

536