How to Remove the 3rd highest salary person record from
table?

Answer Posted / nathan

DELETE FROM emp
WHERE empno = (SELECT empno
FROM (SELECT empno, ROWNUM rn
FROM (SELECT empno
FROM emp
ORDER BY sal DESC))
WHERE rn = 3);

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a nested table?

636


How to pass a cursor variable to a procedure?

570


What are group functions in oracle?

592


What is the difference between sharding and partitioning?

509


How to define an anonymous block?

624






Why is oracle database so popular?

573


normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi

1752


How to install oracle odbc drivers?

633


How to delete all rows a table in oracle?

630


What is the usage of control file in oracle?

616


Can you assign multiple query result rows to a variable?

562


Explain mutating triggers.

580


Explain what are the characteristics of data files?

638


How to put more than 1000 values into an oracle in clause?

591


Is it possible to insert comments into sql statements return in the data model editor ?

2076