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
Explain drop constraint oracle?
How to do paging with oracle?
Can you drop an index associated with a unique or primary key constraint?
How to generate query output in html format?
can u plz provide me oca sql dumps please i need them
How to insert a record into a table?
How to join two tables in a single query using oracle?
How to use null as conditions in oracle?
How do I find the database name in oracle?
What is rich query?
How to convert characters to numbers in oracle?
How do we represent comments in oracle?
What is pragma autonomous transaction in oracle?
What is the minimum client footprint required to connect c# to an oracle database?
How can I combine multiple rows into a comma-delimited list in oracle?