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
What are the types of sql commands?
what is meant by nl2br()? : Sql dba
What is lexical units in pl sql?
Does inner join return duplicate rows?
i have some prob lem to tell me about my self in interview first round ...
What is the maximum number of rows in sql table?
what are the disadvantages of mysql? : Sql dba
Explian rowid, rownum? What are the psoducolumns we have?
Is there any restriction on the use of union in embedded sql?
Explain the steps needed to create the scheduled job?
Which is better join or inner query?
what are numeric data types? : Sql dba
What is out parameter used for eventhough return statement can also be used in pl/sql?
Explain the significance of the & and && operators in pl sql.
Explain what is a subquery ?