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


Please Help Members By Posting Answers For Below Questions

What is dynamic proxy?

562


What is the difference between alert log file and tarce file ?

1645


Can we store images in oracle database?

561


Explain the use of ignore option in imp command.

587


How to sort output in descending order in oracle?

586






How can Oracle users be audited?

621


Hi Can any one tell me what are the API's used in requisition import.

1506


Explain do view contain data?

595


What are the attributes of the cursor?

567


what are steps for interface? where is exchange rate defined in which table?

1508


How much memory your 10g xe server is using?

590


Explain an extent?

671


Explain an exception and its types?

617


Which environment variables are absolutely critical in order to run the OUI?

1668


Can group functions be mixed with non-group selection fields?

542