How to Remove the 3rd highest salary person record from
table?
Answer Posted / prasanna
DELETE FROM
(SELECT EMP_ID, SALARY, DENSE_RANK() OVER (ORDER BY SALARY
DESC) AS CNT FROM EMPLOYEE)
WHERE CNT = 3;
or
delete from employees where employee_id in (select
employee_id from employees where 2 =(select count(distinct
e.salary) from employees e
where e.salary > employees.salary));
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How to use subqueries in the from clause in oracle?
Is oracle the best database?
Is a rollback possible to any savepoint?
6. Display the client name and order date for all orders using the traditional method.
Explain what does a control file contain?
What is index in Oracle?
What do database buffers contain?
definition of cluster and non-clustered index?
What are the attributes that are found in a cursor?
Explain what are the uses of rollback segment?
How does Oracle guarantee data integrity of data changes?
How to update values on multiple rows in oracle?
What is an anonymous block?
What is the data pump import utility?
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?