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 / venkateswararao

delete from emp p where rowid<(select max(rowid) from emps where p.ename=s.ename)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different tables present in mysql? : Sql dba

504


Can a commit statement be executed as part of a trigger?

602


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

548


What are the basic sql commands?

550


What is normalization? How many normalization forms are there?

554






Explain what is a view?

600


Which are the different case manipulation functions in sql?

539


Can we call a function containing dml statements in a select query?

546


What is cascade in sql?

561


How do I install sql?

524


What is a field in a database?

568


how to convert character strings to dates? : Sql dba

525


What is nosql example?

585


Mention what does plv msg allows you to do?

669


How can check sql version from command line?

536