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

What is count * in sql?

558


How delete all records from table in sql?

555


What is clustered and nonclustered index in sql?

504


What is difference between procedure and trigger?

520


How can one get sql*loader to commit only at the end of the load file? : aql loader

573






What is compound trigger?

561


What is trigger and types?

570


what is log shipping? : Sql dba

615


what are the join types in tsql? : Transact sql

577


Is oracel sql developer written in java?

648


How would you convert date into julian date format?

594


What is the current version of postgresql?

560


What is flag in sql?

546


Can we call procedure in select statement?

521


How do I debug a stored procedure?

631