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

How can I introduce multiple conditions in like operator?

553


How to run queries on external tables?

568


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1532


Where do we use decode and case statements?

558


Explain oracle 12c new features for developers?

538






What are the common oracle dba tasks?

625


How to shutdown your 10g xe server?

618


How to best split csv strings in oracle 9i?

587


How to handle a single quote in oracle sql?

593


What is oracle used for?

534


WHAT IS ecc 6.0

1660


How many types of synonyms in Oracle?

596


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

1807


What is snapshot is too old? Give and example for better understand.

1100


What is catalog in Oracle?

649