Delete duplicate records in the emp table.

Answer Posted / amedela chandra sekhar

delete from emp x where rowid>(select min(rowid) from emp
where rmpno=x.empno);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is composite primary key in sql?

514


What are the advantages of stored procedure?

534


what are tables and fields? : Sql dba

570


What does an inner join do?

550


Explain the the delete statements in sql?

572






What is program debugging?

552


What is the difference between cross join and natural join?

556


Why do we use function in pl sql?

553


Can we write ddl statements in functions?

559


what is bcp? When is it used?

573


how to enter characters as hex numbers? : Sql dba

564


what is 'mysqlshow'? : Sql dba

571


How many types of tables are there?

496


Is grant a ddl statement?

448


What is pl sql script?

558