Delete duplicate records in the emp table.

Answer Posted / valli

delete from emp where rowid in(
select rowid from (
select emp_no, sal,rownum() over (emp_no,sal) as
Rownum from emp order_by emp_no,sal
) where rownum > 2
)

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many functions are there in sql?

634


What is use of trigger?

590


What is sqlca in powerbuilder?

649


What is the use of & in pl sql?

615


Explain dml and ddl?

637






What are primary key and foreign key and how they work?

653


What do we need to check in database testing?

646


Show the two pl/sql cursor exceptions.

712


What is sql rowcount?

647


How to return multiple rows from the stored procedure?

621


What is the difference between inner join and natural join?

604


What is parallel hint?

838


Why left join is used in sql?

629


What is sql procedures and functions?

634


define sql delete statement ? : Sql dba

660