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 is gpt format?

501


what is the use of set statement in tsql? : Transact sql

530


Explain what is a subquery ?

653


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

1643


What is break?

616






what is the functionality of the function htmlentities? : Sql dba

517


What is meant by <> in sql?

503


How can triggers be used for the table auditing?

592


What is assignment operator in pl sql?

561


what is try_catch block in procedure

1188


What are procedures used for?

525


How delete all data from table in sql?

568


what does the t-sql command ident_incr does? : Transact sql

593


What is count * in sql?

551


How can a function retun more than one value in oracle with proper example?

580