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

Answer Posted / suresh babu

delete from employees where employee_id in (select
employee_id from employees where 3 =(select count(distinct
e.salary) from employees e
where e.salary >= employees.salary));

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to load excel data sheet to oracle database

582


How to convert characters to dates in oracle?

557


Explain what are the characteristics of data files?

620


Is postgres faster than oracle?

555


What are triggers in oracle?

553






Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1524


Is there a combination of "like" and "in" in sql?

571


What are internal user account in oracle?

567


In the oracle version 9.3.0.5.0, what does each number shows?

739


Differentiate between pre-select and pre-query?

612


What happens to the current transaction if a ddl statement is executed?

570


How to turn on or off recycle bin for the instance?

599


What is the usage of save points in oracle database?

531


How to start your 10g xe server from command line?

541


What is truncate oracle?

527