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

Answer Posted / khan

DELETE FROM
(SELECT EMP_ID, SALARY, DENSE_RANK() OVER (ORDER BY SALARY DESC) AS CNT FROM EMPLOYEE)
WHERE CNT = 3;

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why should I use oracle database?

578


Explain the use of compress option in exp command.

554


What is recovery manager(rman) backup in Oracle?

638


Why do we use coalesce function in oracle?

641


how may join possible between (requisition with purchase order)

1709






How to create tables for odbc connection testing?

501


What are the built-in functions used for sending Parameters to forms ?

2852


How will you identify oracle database software release?

531


What is a view and how is it different from a table?

578


what is difference between sql plus and sql*plus? (not sql and sql plus).

3358


How do I find the database name in oracle?

605


What do you mean by merge in oracle and how can you merge two tables?

533


How to list all indexes in your schema?

590


Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.

1587


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1452