find out the third highest salary?
Answer Posted / nirad
select Top 1 *
from ( select top 3 * from Customer order by salary desc )
tempt
order by salary asc
if you want third lowest just desc with asc and asc with
desc and even if you want 2 or other hight value just
change inner query value of 3
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How do I limit the number of rows returned by an oracle query after ordering?
How to convert raw data type into text in oracle? Explain
How to turn on or off recycle bin for the instance?
Can sub procedure/function be called recursively?
What is the difference between translate and replace in oracle?
State and explain the different types of data models?
what is IDE,DMV in sql server?
How to do paging with oracle?
Explain self joins in oracle?
What are the different types of record groups in oracle? Explain each of them
why dont we assign not null constraint as table level constraint.
Can we convert a date to char in oracle and if so, what would be the syntax?
How to retrieve data from an explicit cursor?
What happens to the indexes if a table is recovered?
Can multiple cursors being opened at the same time?