how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used

Answer Posted / raghavendraprasad

delete from table_name where rowid not in (select max
(rowid) from table group by duplicate_values_field_name);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

549


How do I remove sql developer from windows 10?

511


What is delimiter in pl sql?

582


What are the built in functions of sql?

567


What is a recursive stored procedure?

618






How is a PL/SQL code compiled?

670


What are the two types of cursors in pl sql?

542


Which join condition can be specified using on clause?

517


Is primary key always clustered index?

537


what is single byte over head in oracle..?

1872


What are the operators in sql?

529


what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba

617


What are different types of tables in sql?

531


What is an intersect?

655


Can you sum a count in sql?

559