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 / dinesh mohan upadhyay

delete from emp
where rowid>any(select min(rowid) from emp a where
a.col1=col1)

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the events on which a database trigger can be based?

590


How is a process of pl/sql compiled?

596


What are the two types of cursors in pl sql?

532


In what condition is it good to disable a trigger?

550


Explain lock escalation? : Transact sql

702






What is the usage of distinct keyword?

627


what is the difference between blob and text? : Sql dba

523


How many commands are there in sql?

545


how would you get the current date in mysql? : Sql dba

537


how to rename an existing table in mysql? : Sql dba

572


what is myisam? : Sql dba

573


What are the benefits of stored procedures?

530


What is nvarchar max in sql?

577


Does sql require a server?

523


what is the syntax used for partition in tsql? : Transact sql

534