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 the difference between a procedure and a function? What do you understand by those terms?
What are oracle functions?
What is truncate oracle?
If youre unsure in which script a sys or system-owned object is created, but you know its in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?
What are the ansi data types supported in oracle?
master table and child table performances and comparisons in Oracle ?
What is archive log in Oracle?
Explain cascading triggers.
various types of hints and their usage
What is a tns file?
What happens if the update subquery returns multiple rows?
How many categories of data types?
Can we call procedure inside function in oracle?
What is columnar storage what is the advantage?
What is data file?