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
What is meant by recursive hints in oracle?
What is format trigger?
What is the relationship among database, tablespace and data file?
List out the components of logical database structure of oracle database.
How do I use unicode codesets with the weblogic jdriver for oracle driver?
What is a parameter file in oracle?
What is meant by an index?
How do you bind variables in oracle?
how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?
How to drop an index in oracle?
what is normalisation?what are its uses?
How many categories of data types?
How to install oracle database 10g xe?
you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz
Explain what are synonyms used for?