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 handle a single quote in oracle sql?
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
What is the difference between truncate & delete command?
How to unlock the sample user account in oracle?
Differentiate between pre-select and pre-query?
What is save point in oracle database?
What is user managed backup in Oracle?
How do you bind variables in oracle?
How to use "while" statements in oracle?
How to bring a tablespace offline?
What is hot backup and logical backup?
Explain the characteristics of oracle dba?
Difference between varchar and varchar2 data types?
How do I escape a reserved word in oracle?
How many types of tables supported by oracle?