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
What is format trigger?
What is the difference between primary key and unique key and foreign key in oracle?
What to do if the binary spfile is wrong for the default instance?
How do we get field details of a table?
State any two functions of oracle?
What is a table index?
What is the difference between online and offline backups?
How to connect to oracle using service name instead of sid?
What is data file?
Explain the use of analyse option in exp command.
How to insert multiple rows with one insert statement in oracle?
What are the differences between char and varchar2 in oracle?
Differentiate between function and procedure in oracle.
When do I need to use a semicolon vs a slash in oracle sql?
How does oracle handle read consistency?