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 to use sql*plus built-in timers?

768


What is the benefit of foreign key?

714


What type of database is sql?

774


Does oracle roll back the transaction on an error?

743


Does sql profiler affect performance?

733






How do I run a sql query in pgadmin 4?

718


How can you load multi line records? : aql loader

804


What is sql character function?

711


What are the advantages of pl sql over sql?

733


Why is pl sql needed?

678


What is the most restrictive isolation level? : Transact sql

768


How to find 3rd highest salary of an employee from the employee table in sql?

788


Can I learn sql in a week?

753


what are different types of collation sensitivity? : Sql dba

757


Why truncate is faster than delete?

792