find out the second highest salary?
Answer Posted / raghu
second highest salary department wise query would be this
select e.dept_id,e.salary,e.emp_name,e.rank from (select
dept_id,emp_name,salary,dense_rank() over (partition by
dept_id order by salary desc nulls last) rank
from employee)e
where e.rank = 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to create an oracle database manually?
How is it different from a normal table?
How to use an explicit cursor without open statements?
What is null value in oracle?
what is the difference between functional dependecy and multilevel dependency?
What is oracle latest version?
What are the major difference between truncate and delete?
Does oracle charge for java?
why dont we assign not null constraint as table level constraint.
How to create id with auto_increment on oracle?
How do I learn what codesets are available in oracle?
What are the advantages of oracle 12c?
List out the components of logical database structure of oracle database.
What are the differences between primary key and unique key?
what is normalisation?what are its uses?