find out the second highest salary?
Answer Posted / janmejaya
select top(1) * from employee where salary in (select
distinct top(2) salary from employee order by salary desc)
order by Salary
Above query is dynamic, if u want 3rd highest then just
change 2 to 3 , Please Try It
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to use subqueries with the in operator using oracle?
How to define default values for formal parameters?
Who developed oracle & when?
Explain database link?
How do I uninstall oracle 11g?
How to enter a new row into a table interactively?
Explain oracle instance.
How to delete a column in an existing table?
when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.
Explain the use of constraints option in exp command.
Explain oracle’s server parameter file.
Can objects of the same schema reside in different tablespace?
What is the use of aggregate functions in oracle?
What are internal user account in oracle?
What are a query and state the different types of queries and their uses?