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
What is the usage of save points in oracle database?
When do you get a .pll extension in oracle? Explain its importance
Differentiate between function and procedure in oracle.
What are the limitations of check constraint?
Why does oracle 9i treat an empty string as null?
What do you mean by merge in oracle?
How to rename an index?
What is varray?
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
What is the best way to do multi-row insert in oracle?
Explain user account with reference to oracle.
What happens if variable names collide with table/column names?
How do I know if oracle is installed on windows?
if you ctreate table identity
What is a proxy object?